lt_ioCallbackStreamTypes.h File Reference

#include "lt_base.h"
#include "lt_lib_io.h"

Go to the source code of this file.

Typedefs

typedef void * LTIOStreamH
 opaque pointer to an LTIOStreamInf
types specifically for use with LTIOCallbackStream



typedef LT_STATUS(* LTIOCallbackStream_Open )(void *)
 typedef for callback stream open function
typedef LT_STATUS(* LTIOCallbackStream_Close )(void *)
 typedef for callback stream close function
typedef lt_uint32(* LTIOCallbackStream_Read )(void *, lt_uint8 *, lt_uint32)
 typedef for callback stream read function
typedef lt_uint32(* LTIOCallbackStream_Write )(void *, const lt_uint8 *, lt_uint32)
 typedef for callback stream write function
typedef LT_STATUS(* LTIOCallbackStream_Seek )(void *, lt_int64, LTIOSeekDir)
 typedef for callback stream seek function
typedef lt_int64(* LTIOCallbackStream_Tell )(void *)
 typedef for callback stream tell function
typedef lt_uint8(* LTIOCallbackStream_IsEOF )(void *)
 typedef for callback stream isEOF function
typedef lt_uint8(* LTIOCallbackStream_IsOpen )(void *)
 typedef for callback stream isOpen function
typedef LTIOStreamH(* LTIOCallbackStream_Duplicate )(void *)
 typedef for callback stream duplicate function

Typedef Documentation

typedef LT_STATUS(* LTIOCallbackStream_Close)(void *)

The parameter is a void* (user data).

A status code is returned.

Definition at line 54 of file lt_ioCallbackStreamTypes.h.

The parameter is a void* (user data).

A pointer to the new stream is returned.

Definition at line 120 of file lt_ioCallbackStreamTypes.h.

typedef lt_uint8(* LTIOCallbackStream_IsEOF)(void *)

The parameter is a void* (user data).

A boolean value (0 or 1) is returned.

Definition at line 102 of file lt_ioCallbackStreamTypes.h.

typedef lt_uint8(* LTIOCallbackStream_IsOpen)(void *)

The parameter is a void* (user data).

A boolean value (0 or 1) is returned.

Definition at line 111 of file lt_ioCallbackStreamTypes.h.

typedef LT_STATUS(* LTIOCallbackStream_Open)(void *)

The parameter is a void* (user data).

A status code is returned.

Definition at line 45 of file lt_ioCallbackStreamTypes.h.

The parameters are a void* (user data), a pointer to the buffer to read from, and the number of bytes to read.

The number of bytes actually read is returned.

Definition at line 64 of file lt_ioCallbackStreamTypes.h.

typedef LT_STATUS(* LTIOCallbackStream_Seek)(void *, lt_int64, LTIOSeekDir)

The parameters are a void* (user data), the number of bytes to seek, and the seek direction.

A status code is returned.

Definition at line 84 of file lt_ioCallbackStreamTypes.h.

typedef lt_int64(* LTIOCallbackStream_Tell)(void *)

The parameter is a void* (user data).

The current offset is returned.

Definition at line 93 of file lt_ioCallbackStreamTypes.h.

typedef lt_uint32(* LTIOCallbackStream_Write)(void *, const lt_uint8 *, lt_uint32)

The parameters are a void* (user data), a pointer to the buffer to write to, and the number of bytes to write.

The number of bytes actually written is returned.

Definition at line 74 of file lt_ioCallbackStreamTypes.h.

typedef void* LTIOStreamH
Examples:
UsingCStream.c.

Definition at line 31 of file lt_ioCallbackStreamTypes.h.


LizardTech