lengthas nullable any) as function
lengthis specified, the binary value will contain that many bytes. If
lengthis not specified, the binary value will contain the remaining bytes. The
lengthcan be specified either as a number, or as a binary format of the length that preceeds the binary data.