#include "lcn_types.h"
#include <apr_file_io.h>
Go to the source code of this file.
Typedefs | |
typedef lcn_istream_t | lcn_istream_t |
Opaque structure representing a stream of data. | |
Functions | |
lcn_istream_t * | lcn_ram_istream_create (const char *buffer, apr_size_t length, apr_pool_t *pool) |
Return a memory backed istream containing length bytes of data from buffer, the stream is allocated from pool. | |
lcn_istream_t * | lcn_file_istream_create (apr_file_t *file, apr_pool_t *pool) |
Return a file backed istream that wraps file, allocated from pool. | |
lcn_error_t * | lcn_istream_read_byte (lcn_istream_t *stream, char *byte, apr_pool_t *pool) |
Read a single byte from stream into byte, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_bytes (lcn_istream_t *stream, char *buffer, apr_size_t len, apr_pool_t *pool) |
Read len bytes from stream into buffer, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_int (lcn_istream_t *stream, apr_uint32_t *i, apr_pool_t *pool) |
Read a 32 bit integer from stream into i, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_vint (lcn_istream_t *stream, apr_uint32_t *i, apr_pool_t *pool) |
Read a variable length 32 bit integer from steam into i, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_long (lcn_istream_t *stream, apr_uint64_t *l, apr_pool_t *pool) |
Read a 64 bit integer from stream into l, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_vlong (lcn_istream_t *stream, apr_uint64_t *l, apr_pool_t *pool) |
Read a variable length 64 bit integer from stream into l, using pool for any allocation. | |
lcn_error_t * | lcn_istream_read_string (lcn_istream_t *stream, lcn_char_t **str, apr_pool_t *pool) |
Read a string from stream into str, allocated from pool. | |
lcn_error_t * | lcn_istream_read_chars (lcn_istream_t *stream, lcn_char_t **buffer, apr_size_t length, apr_pool_t *pool) |
Read length chars from stream, returning them in buffer, using pool for allocation. | |
lcn_error_t * | lcn_istream_seek (lcn_istream_t *stream, apr_off_t offset, apr_pool_t *pool) |
Seek stream to offset, using pool for temporary allocations. | |
lcn_error_t * | lcn_istream_close (lcn_istream_t *stream, apr_pool_t *pool) |
Close stream, using pool for temporary allocations. | |
lcn_error_t * | lcn_istream_length (lcn_istream_t *stream, apr_size_t *length, apr_pool_t *pool) |
Return the length of stream in length, using pool for temporary allocations. | |
lcn_error_t * | lcn_istream_offset (lcn_istream_t *stream, apr_off_t *offset, apr_pool_t *pool) |
Return the current position of stream in offset, using pool for temporary allocations. | |
lcn_error_t * | lcn_istream_duplicate (lcn_istream_t **dest, lcn_istream_t *source, apr_pool_t *pool) |
Return a duplicate of source in dest, allocated within pool. |
Definition in file lcn_istream.h.