module

CrystalIso8583::Shared::BCDUtil

Shared packed Binary Coded Decimal helpers used by Codec::BCD and Codec::Configurable.

Class methods

pack(digits : String) : Bytes
Source
pack_track2(str : String) : Bytes

Track 2 (ISO 7813) nibble packing: digits map to 0x0-0x9 as usual, the field separator '=' maps to nibble 0xD, and a trailing 0xF pad nibble is appended when the digit count is odd.

Source
unpack(bytes : Bytes) : String
Source
unpack_track2(bytes : Bytes) : String
Source