dlib.core.stream

Binary I/O stream interfaces

Members

Aliases

StreamOffset
alias StreamOffset = int64_t
Undocumented in source.
StreamPos
alias StreamPos = uint64_t
Undocumented in source.
StreamSize
alias StreamSize = uint64_t
Undocumented in source.

Classes

ArrayStream
class ArrayStream

An InputStream that encapsulates contents of an array

SeekException
class SeekException

An exception which is throwed on stream errors

Functions

copyFromTo
StreamSize copyFromTo(InputStream input, OutputStream output)

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

Interfaces

IOStream
interface IOStream

A stream that allows both reading and writing data

InputStream
interface 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

OutputStream
interface 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
interface Seekable

Seekable stream interface

Stream
interface Stream

A parent interface for all stream types

Structs

BufferedStreamReader
struct BufferedStreamReader

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

Meta

Authors

Martin Cejp, Timur Gafarov