You are here: The C API > Streams

## Streams

An image may be opened either with a filename (const char*) or a stream. The MrSID SDK provides a class derived from LTIOStreamInf, called LTIOCallbackStream, which is designed for third-party streams and stream-like data structures.

The file lt_ioCStream.h contains a set of C interfaces for constructing an LTIOCallbackStream object. The lt_ioCallbackStreamCreate() takes as parameters a set of function pointers corresponding the operations for opening, closing, reading, writing, etc, as is required by the LTIOCallbackStream class. The functions lt_ioCStreamOpen(), lt_ioCStreamRead() etc., all invoke the underlying LTIOStreamInf methods for the LTIOCallbackStream object.

Full details and examples may be found in the Reference Manual.