MrSID Decode SDK for Raster Reference Manual  9.1.0.4045
lt_ioCStream.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC - C */
12 
13 #ifndef LT_IO_C_STREAM_H
14 #define LT_IO_C_STREAM_H
15 
16 #include "lt_base.h"
17 #include "lt_lib_io.h"
19 
20 #if defined(LT_COMPILER_MS)
21  #pragma warning(push,4)
22 #endif
23 
24 #ifdef LT_CPLUSPLUS
25 extern "C" {
26 #endif
27 
35 
47 
48 
60 
61 
74 
75 
89 
90 
103 lt_uint32 lt_ioCStreamWrite(LTIOStreamH stream, const lt_uint8* buf, lt_uint32 len);
104 
105 
118 LT_STATUS lt_ioCStreamSeek(LTIOStreamH stream, lt_int64 offset, LTIOSeekDir dir);
119 
120 
131 lt_int64 lt_ioCStreamTell(LTIOStreamH stream);
132 
133 
145 
146 
158 
159 
171 
172 
200  void* userData);
201 
204 #ifdef LT_CPLUSPLUS
205 }
206 #endif
207 
208 #if defined(LT_COMPILER_MS)
209  #pragma warning(pop)
210 #endif
211 
212 #endif
void * LTIOStreamH
opaque pointer to an LTIOStreamInf
LT_STATUS(* LTIOCallbackStream_Open)(void *)
typedef for callback stream open function
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:54
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:46
LT_STATUS lt_ioCStreamClose(LTIOStreamH stream)
close C stream
Support for the IO classes.
lt_uint32(* LTIOCallbackStream_Read)(void *, lt_uint8 *, lt_uint32)
typedef for callback stream read function
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 callback stream
lt_uint8 lt_ioCStreamIsEOF(LTIOStreamH stream)
is end-of-file? for C stream
lt_int64 lt_ioCStreamTell(LTIOStreamH stream)
tell for C stream
LT_STATUS(* LTIOCallbackStream_Close)(void *)
typedef for callback stream close function
lt_uint32(* LTIOCallbackStream_Write)(void *, const lt_uint8 *, lt_uint32)
typedef for callback stream write function
lt_uint8 lt_ioCStreamIsOpen(LTIOStreamH stream)
is open? for C stream
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:39
lt_uint8(* LTIOCallbackStream_IsOpen)(void *)
typedef for callback stream isOpen function
lt_int64(* LTIOCallbackStream_Tell)(void *)
typedef for callback stream tell function
lt_uint8(* LTIOCallbackStream_IsEOF)(void *)
typedef for callback stream isEOF function
Include file for all LizardTech sources.
lt_uint32 lt_ioCStreamWrite(LTIOStreamH stream, const lt_uint8 *buf, lt_uint32 len)
write C stream
lt_uint32 lt_ioCStreamRead(LTIOStreamH stream, lt_uint8 *buf, lt_uint32 len)
read C stream
LTIOSeekDir
Stream seek directions.
Definition: lt_lib_io.h:30
LTIOStreamH(* LTIOCallbackStream_Duplicate)(void *)
typedef for callback stream duplicate function
LT_STATUS lt_ioCStreamOpen(LTIOStreamH stream)
open C stream
LTIOStreamH lt_ioCStreamDuplicate(LTIOStreamH stream)
duplicate C stream
LT_STATUS lt_ioCStreamSeek(LTIOStreamH stream, lt_int64 offset, LTIOSeekDir dir)
seek for C stream
LT_STATUS lt_ioCStreamDestroy(LTIOStreamH stream)
destructor for C stream
LT_STATUS(* LTIOCallbackStream_Seek)(void *, lt_int64, LTIOSeekDir)
typedef for callback stream seek function

LizardTech