Lhasa
|
Structure containing pointers to callback functions to read data from the input stream. More...
#include <lha_input_stream.h>
Data Fields | |
int(* | read )(void *handle, void *buf, size_t buf_len) |
Read a block of data into the specified buffer. | |
int(* | skip )(void *handle, size_t bytes) |
Skip the specified number of bytes from the input stream. | |
void(* | close )(void *handle) |
Close the input stream. | |
Structure containing pointers to callback functions to read data from the input stream.
void(* LHAInputStreamType::close) (void *handle) |
Close the input stream.
handle | Handle pointer. |
int(* LHAInputStreamType::read) (void *handle, void *buf, size_t buf_len) |
Read a block of data into the specified buffer.
handle | Handle pointer. |
buf | Pointer to buffer in which to store read data. |
buf_len | Size of buffer, in bytes. |
int(* LHAInputStreamType::skip) (void *handle, size_t bytes) |
Skip the specified number of bytes from the input stream.
This is an optional function.
handle | Handle pointer. |
bytes | Number of bytes to skip. |