Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
stream.h File Reference
#include <banjo/api.h>
#include <banjo/error.h>
Include dependency graph for stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bj_stream_read_t(stream, type, buffer)
#define bj_stream_skip_t(stream, type)

Typedefs

typedef struct bj_stream_t bj_stream

Enumerations

enum  bj_seek_origin { BJ_SEEK_BEGIN = 0x00 , BJ_SEEK_CURRENT = 0x01 , BJ_SEEK_END = 0x02 }

Functions

bj_streambj_allocate_stream (void)
bj_streambj_open_stream_read (const void *p_data, size_t length)
bj_streambj_open_stream_file (const char *p_path, bj_error **p_error)
void bj_close_stream (bj_stream *p_stream)
size_t bj_read_stream (bj_stream *p_stream, void *p_dest, size_t count)
size_t bj_get_stream_length (bj_stream *p_stream)
size_t bj_seek_stream (bj_stream *p_stream, ptrdiff_t position, bj_seek_origin from)
size_t bj_tell_stream (bj_stream *p_stream)

Detailed Description

Header file for bj_stream_t struct and related functions.