MrSID Decode SDK for Raster Reference Manual
9.0.0.3864
|
Go to the source code of this file.
LTIOStreamH lt_ioCallbackStreamCreate | ( | LTIOCallbackStream_Open | open, |
LTIOCallbackStream_Close | close, | ||
LTIOCallbackStream_Read | read, | ||
LTIOCallbackStream_Write | write, | ||
LTIOCallbackStream_Seek | seek, | ||
LTIOCallbackStream_Tell | tell, | ||
LTIOCallbackStream_IsEOF | isEOF, | ||
LTIOCallbackStream_IsOpen | isOpen, | ||
LTIOCallbackStream_Duplicate | duplicate, | ||
void * | userData | ||
) |
Create an LTIOCallbackStream, via C API. The parameters correspond to those used in LTIOCallbackStream::initialize().
open | user's open function |
close | user's close function |
read | user's read function |
write | user's write function |
seek | user's seek function |
tell | user's tell function |
isEOF | user's isEOF function |
isOpen | user's isOpen function |
duplicate | user's duplicate function |
userData | user's stream data |
LT_STATUS lt_ioCStreamClose | ( | LTIOStreamH | stream | ) |
Closes a C stream. Note that lt_ioCStreamDestroy() must be called once the stream is no longer needed.
This function is equivalent to LTIOStreamInf::close().
stream | stream to be closed |
LT_STATUS lt_ioCStreamDestroy | ( | LTIOStreamH | stream | ) |
This function must be called once the stream is no longer needed to free up the stream's allocated resources, i.e. it calls the destructor of the underlying LTIOCallbackStream.
stream | stream to be freed |
LTIOStreamH lt_ioCStreamDuplicate | ( | LTIOStreamH | stream | ) |
Duplicate a C stream.
This function is equivalent to LTIOStreamInf::duplicate().
stream | stream to duplicate |
lt_uint8 lt_ioCStreamIsEOF | ( | LTIOStreamH | stream | ) |
Check for EOF on a C stream.
This function is equivalent to LTIOStreamInf::isEOF().
stream | stream to query |
lt_uint8 lt_ioCStreamIsOpen | ( | LTIOStreamH | stream | ) |
Check for open on a C stream.
This function is equivalent to LTIOStreamInf::isOpen().
stream | stream to query |
LT_STATUS lt_ioCStreamOpen | ( | LTIOStreamH | stream | ) |
Opens a previously-created C stream.
This function is equivalent to LTIOStreamInf::open().
stream | stream to be opened |
lt_uint32 lt_ioCStreamRead | ( | LTIOStreamH | stream, |
lt_uint8 * | buf, | ||
lt_uint32 | len | ||
) |
Read from a C stream.
This function is equivalent to LTIOStreamInf::read().
stream | stream to read from |
buf | buffer to read into |
len | number of bytes to read |
LT_STATUS lt_ioCStreamSeek | ( | LTIOStreamH | stream, |
lt_int64 | offset, | ||
LTIOSeekDir | dir | ||
) |
Seek on a C stream.
This function is equivalent to LTIOStreamInf::seek().
stream | stream to be seek on |
offset | distance to seek |
dir | seek direction |
lt_int64 lt_ioCStreamTell | ( | LTIOStreamH | stream | ) |
Tell on a C stream.
This function is equivalent to LTIOStreamInf::tell().
stream | stream to get offset of |
lt_uint32 lt_ioCStreamWrite | ( | LTIOStreamH | stream, |
const lt_uint8 * | buf, | ||
lt_uint32 | len | ||
) |
Write to a C stream.
This function is equivalent to LTIOStreamInf::write().
stream | stream to be written to |
buf | buffer to write from |
len | number of bytes to write |