Module util

Module util 

Source
Expand description

Helper functions for dealing with sets or lists of parcels.

Functions§

read_items
Reads a specified number of items from a stream.
read_list
Reads a length-prefixed list from a stream.
read_list_ext
Reads a length-prefixed list from a stream.
read_string
Reads a string of specified length from a stream.
write_items
Writes an iterator of parcels to the stream.
write_list
Writes a length-prefixed list to a stream.
write_list_ext
Writes a length-prefixed list to a stream.

Type Aliases§

SizeType
The integer type that we will use to send length prefixes.