How to skip length indicator of a LL subfield #407
-
|
I have an
Subfield 1, although variable, shall not be prefixed with size bytes. The specific ISO server relies on subtracting the fixed portions size (10+3) from the overall main LL field size to "know" the size of Subfield 1. How can I achieve this? The code below does not work, since it inserts length LL bytes in subfield 1: Thanks in advance! P.S. I tried |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey @kamenlitchev, interesting use case. In many ISO8583 libraries, the length indicator is often coupled with the field definition (e.g., LVAR, LLVAR). If you need to skip it for a specific subfield, you might need to define a custom field packer/unpacker that treats the length as part of the data or simply ignores the length prefix logic. Check if Moov's iso8583 allows for custom encoders for subfields in a spec. That's usually where you can override the default length-prefixed behavior! |
Beta Was this translation helpful? Give feedback.
-
|
This library is AMAZING!!! The solution was |
Beta Was this translation helpful? Give feedback.
This library is AMAZING!!! The solution was
Pref: prefix.None.Fixed. This skipped the prefix while still encoding the data as variable length field.