moov-io / iso8583

A golang implementation to marshal and unmarshal iso8583 message.
https://moov.io
Apache License 2.0
353 stars 105 forks source link

Allow to use bitmaps with arbitrary size #171

Closed alovak closed 1 year ago

alovak commented 2 years ago

In one of our cases, I found that we need a bitmap with 4 bytes. The current implementation of the field.Bitmap assumes that 8 bytes is the minimal bitmap size. We have to make it default, but allow us to specify a smaller size if needed.

There will probably be no change to API, as we already specify Length in the field.Spec, we just have to use it instead of hardcoded minBitmapLenght.

alovak commented 1 year ago

closed in https://github.com/moov-io/iso8583/pull/211