On 5/31/22 07:08, Eli Zaretskii wrote: > Can you tell why you are convinced the null byte should be considered > as part of the string? The null terminator is the reason one would use the strz type. If the user doesn't want a null terminator, they should use the str type instead. From the documentation [1]: > str len > > String of bytes of length len. > > strz &optional len > > Zero-terminated string of bytes, can be of arbitrary length or > in a fixed-size field with length len. [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Bindat-Types.html#index-bindat_002dtype