FIXTradingCommunity/fix-simple-binary-encoding

Fixed Length Strings - delimited or padded?

chadwilson1 opened this issue · 2 comments

In the document Simple-Binary-Encoding-v2-RC2.pdf from August 8, 2019, page 22, section 2.7.2 Fixed-length character array, for “Backing primitives” the spec says, “Array of char of specified length, delimited by NUL character if a string is shorter than the length specified for a field.” But section 2.7.2.2, page 23, “Examples of fixed-length character arrays,” the example says, “A character array constant specification. As for a non-constant value, if the constant is shorter than the specified length, it should be padded with NUL characters to fill the fixed-length array.”

"Delimited" suggests a single NUL character, while "padded" is clear that ALL bytes should be NUL. If "padded" is intended, could the spec section 2.7.2 be clarified?

Thanks,
Chad Wilson

Agree that "padded" is correct term.

Resolved by changing delimited to padded in the section Fixed-length character array for V2.0 RC3 (and V1.0 Errata Nov 2020)