Module io

Module io 

Source
Expand description

Reader and writer traits to generalise over writing to and reading from buffers in memory and cryptographic constructions which take variable length input or generate variable length output.

Structs§

WriteTooLargeError
Requested a write larger than self.capacity().

Traits§

CryptoReader
Marker trait to indicate that the output of a Reader can be considered to be pseudo random.
Reader
An object from which bytes can be read.
Writer
An object to which bytes can be written.

Functions§

check_write_size
Helper function checking that requested <= capacity and creating an appropriate WriteTooLargeError if this is not the case.