CrystalIso8583::Shared::Codec::BCD
Inherits CrystalIso8583::Shared::Codec < Reference < Object
BCD codec — MTI and numeric fields as packed Binary Coded Decimal; alphanumeric/binary fields remain as raw ASCII bytes.
Instance methods
Decode raw field bytes into a String.
length is the logical field length (number of characters/digits), not the byte count.
Binary fields (DataType::B) are returned as lowercase hex strings.
Encode a field value string using the codec rules for the given data type.
Number of wire bytes occupied by length field-units of data_type.
Number of bytes used by a variable-length prefix with digits digit positions.