Method | Description | |
---|---|---|
Decode ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : object |
Main decode method. Switch based on the given FieldFormat
|
|
EbcdicDecoder ( |
Custom constructor given encoding
|
|
EbcdicDecoder ( string encodingName ) : System |
Custom constructor given encoding name
|
|
ParsePacked ( byte bytes ) : decimal |
Parses a packed number
|
|
ParsePacked ( byte bytes, int start, int end ) : decimal |
Parses a packed number
|
|
ParseZoned ( string value ) : decimal |
Parses a Zoned number
|
Method | Description | |
---|---|---|
DecodeHex ( byte bytes ) : string |
Decode byte array as hexadecimal
|
|
DecodePacked ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : decimal |
Decode a byte array using the packed format
|
|
DecodeZoned ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : decimal |
Decode a byte array using the zoned format
|
|
GetLastIndex ( char lastChar, bool &positive ) : string | ||
ScaleResult ( Summer.Batch.Extra.Copybook.FieldFormat fieldFormat, decimal result ) : decimal |
Scale result using the given fieldFormat
|
public Decode ( byte bytes, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : object | ||
bytes | byte | |
fieldFormat | Summer.Batch.Extra.Copybook.FieldFormat | |
return | object |
public EbcdicDecoder ( |
||
encoding | ||
return | System |
public EbcdicDecoder ( string encodingName ) : System | ||
encodingName | string | |
return | System |
public static ParsePacked ( byte bytes ) : decimal | ||
bytes | byte | a byte array where a number has been pack encoded |
return | decimal |
public static ParsePacked ( byte bytes, int start, int end ) : decimal | ||
bytes | byte | a byte array where a number has been pack encoded |
start | int | the beginning index, inclusive |
end | int | the end index, exclusive |
return | decimal |
public static ParseZoned ( string value ) : decimal | ||
value | string | a string where a number has been zone encoded |
return | decimal |