adefirmanf / iso8583

This library help you for wrapping message into ISO8583 and parse the message
3 stars 5 forks source link

'variableLength' support #15

Closed jeanSagaz closed 3 years ago

jeanSagaz commented 3 years ago

In the loop, I check if the data there is a variable length. Then I do a validation checking if the value length is bigger than the value of the property 'variableLength' and throw an exception. If the value is less than the value of the property 'variableLength', I pad it left with zeros in order to have the same length of the property 'variableLength'. BIT[32] = 489409 In this case the spect value is 06 and the property 'variableLength' has the maximum value 11.