Byte Arrays
The XDR library provides a primitive for byte arrays.
Although similar to strings, byte arrays differ by having a byte count. That is, the length of the array is set by an unsigned integer. They also differ in that byte arrays are not terminated with a null character. External and internal representations of byte arrays are the same.
The XDR library includes the following subroutine for byte arrays:
Item | Description |
---|---|
xdr_bytes | Translates between counted byte string arrays and their external representations. |