Module dlib.core.stream

Binary I/O stream interfaces

Functions

NameDescription
copyFromTo(input, output) While input is readable, reads data from input and writes it to output. Returns number of bytes read

Interfaces

NameDescription
InputStream A stream inteface that allows to read data from it. Reading any data implies position advance by corresponding number of bytes. Methods shouldn't throw on EOF, may throw on a more serious error
IOStream A stream that allows both reading and writing data
OutputStream A stream interface that allows to write data into it. Methods shouldn't throw on full disk, may throw on a more serious error
Seekable Seekable stream interface
Stream A parent interface for all stream types

Classes

NameDescription
ArrayStream An InputStream that encapsulates contents of an array
SeekException An exception which is throwed on stream errors

Structs

NameDescription
BufferedStreamReader An input range that reads data from InputStream by fixed chunks, storing them in user-provided array