Module rwutil::length_prefixed [] [src]

Length-prefixed reading and writing

Implements a popular format for sending data packets: First, a fixed width integer in a fixed byte order is sent with the length of the data, followed by the actual data.

Traits

ReadPrefixedExt

Implements reading length-prefixed data.

WritePrefixedExt

Implements sending of byte-slices with a length prefix.