You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not obvious how the length of Arrays should be handled when encoding. In the profile xls, some arrays are tagged with "[N]", presumably indicating that they have a variable length. In some of these cases, the "EXAMPLE" column includes a number which appears to be the intended length. In other cases, the "EXAMPLE" column only has '1'.
The decoder always reads the number of elements which are encoded in the file. The encoder could also do this - but the length would need to be known at the point of generating the definition message, which means if the length is different between messages in the same file, we'd need to make a new definition message (see also, #36) or truncate/pad.
The current behaviour is to use the value from the "EXAMPLE" column, and always encode exactly that number of elements, truncating or padding as necessary. This causes the DecodeEncodeDecode test to fail in a number of cases, because this length is '1' in the xls, whereas the input file has many elements.
The text was updated successfully, but these errors were encountered:
It's not obvious how the length of Arrays should be handled when encoding. In the profile xls, some arrays are tagged with "[N]", presumably indicating that they have a variable length. In some of these cases, the "EXAMPLE" column includes a number which appears to be the intended length. In other cases, the "EXAMPLE" column only has '1'.
The decoder always reads the number of elements which are encoded in the file. The encoder could also do this - but the length would need to be known at the point of generating the definition message, which means if the length is different between messages in the same file, we'd need to make a new definition message (see also, #36) or truncate/pad.
The current behaviour is to use the value from the "EXAMPLE" column, and always encode exactly that number of elements, truncating or padding as necessary. This causes the DecodeEncodeDecode test to fail in a number of cases, because this length is '1' in the xls, whereas the input file has many elements.
The text was updated successfully, but these errors were encountered: