Метод | Описание | |
---|---|---|
EbcdicEncoder ( |
Custom constructor using encoding
|
|
EbcdicEncoder ( string encodingName ) : System |
Custom constructor using encoding name
|
|
Encode ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encodes a C# object to a byte array using EBCDIC format. Main method.
|
|
EncodePacked ( decimal value, int size ) : byte[] |
Encodes a decimal as a packed number, using defaults.
|
|
EncodePacked ( decimal value, int size, int nbDecimals, bool signed ) : byte[] |
Encodes a decimal as a packed number.
|
|
EncodeZoned ( decimal value, int size ) : string |
Encode decimal as zoned number, using defaults.
|
|
EncodeZoned ( decimal value, int size, int nbDecimals, bool signed, bool impliedDecimal ) : string |
Encode decimal as zoned number.
|
Метод | Описание | |
---|---|---|
EncodeBinary ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encode decimal to binary. Only accept decimal or throw ValueTypeMismatchException.
|
|
EncodePacked ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encode objet as packed number
|
|
EncodeText ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encode object as text, using current encoding
|
|
EncodeTransparent ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encode given object in a transparent way. Only applies to existing byte array having correct length. All other situations will lead to throwing a ValueTypeMismatchException.
|
|
EncodeZoned ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] |
Encode object as zoned number.
|
|
GetByte ( DefaultValue defaultValue, |
return byte given default value and using given encoding
|
|
GetNextDigit ( string number, int &index ) : byte |
get next digit from a string representing a number
|
|
GetScale ( decimal dec ) : int |
return the number of decimals of a given decimal. Trailing zeros are to be kept into account.
|
|
GetUnscaledValue ( decimal dec ) : decimal |
return unscaled value from decimal
|
|
GetUnscaledValueAsByteArray ( decimal dec ) : byte[] |
Return a significant byte array of unscaled decimal value
|
|
GetValueTypeMismatchException ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat, string expectedType ) : |
Construct a dedicated ValueTypeMismatchException based on given inputs
|
|
SetScale ( decimal dec, int scale ) : decimal |
|
public EbcdicEncoder ( |
||
encoding | ||
Результат | System |
public EbcdicEncoder ( string encodingName ) : System | ||
encodingName | string | |
Результат | System |
public Encode ( object field, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[] | ||
field | object | the object to encode |
fieldFormat | Summer.Batch.Extra.Copybook.FieldFormat | the format of the field |
Результат | byte[] |
public static EncodePacked ( decimal value, int size ) : byte[] | ||
value | decimal | |
size | int | |
Результат | byte[] |
public static EncodePacked ( decimal value, int size, int nbDecimals, bool signed ) : byte[] | ||
value | decimal | |
size | int | |
nbDecimals | int | |
signed | bool | |
Результат | byte[] |
public static EncodeZoned ( decimal value, int size ) : string | ||
value | decimal | |
size | int | |
Результат | string |
public static EncodeZoned ( decimal value, int size, int nbDecimals, bool signed, bool impliedDecimal ) : string | ||
value | decimal | |
size | int | |
nbDecimals | int | |
signed | bool | |
impliedDecimal | bool | |
Результат | string |