class

CrystalIso8583::Shared::Header::AsciiLengthPrefix

Inherits CrystalIso8583::Shared::Header::Strategy < Reference < Object

An N-digit ASCII decimal length prefix indicating the byte size of the ISO 8583 message that follows (the common TCP framing convention).

Constructors

new(digits : Int32 = 4)
Source

Instance methods

strip(bytes : Bytes) : Bytes

Returns the ISO 8583 payload with the header removed.

Source
wrap(iso_bytes : Bytes) : Bytes

Returns iso_bytes with the header prepended.

Source