53.6. Message Data Types
This section describes the base data types used in messages.
n-bit integer in network byte order (most significant byte first). If
iis specified it is the exact value that will appear, otherwise the value is variable. Eg. Int16, Int32(42).
An array of
n-bit integers, each in network byte order. The array length
kis always determined by an earlier field in the message. Eg. Int16[M].
A null-terminated string (C-style string). There is no specific length limitation on strings. If
sis specified it is the exact value that will appear, otherwise the value is variable. Eg. String, String("user").
There is no predefined limit on the length of a string that can be returned by the backend. Good coding strategy for a frontend is to use an expandable buffer so that anything that fits in memory can be accepted. If that's not feasible, read the full string and discard trailing characters that don't fit into your fixed-size buffer.
nbytes. If the field width
nis not a constant, it is always determinable from an earlier field in the message. If
cis specified it is the exact value. Eg. Byte2, Byte1('\n').