45 # ifdef GMIO_HAVE_INT64_TYPE
#define GMIO_API
Expands either to GMIO_DECL_EXPORT or GMIO_DECL_IMPORT when respectively compiling/using the DLL...
Definition: global.h:89
int(* func_get_pos)(void *cookie, struct gmio_streampos *pos)
Function that retrieves the current position in the stream.
Definition: stream.h:138
bool(* func_at_end)(void *cookie)
Function that checks end-of-stream indicator.
Definition: stream.h:92
size_t(* func_write)(void *cookie, const void *ptr, size_t size, size_t count)
Function that writes block of data to stream.
Definition: stream.h:128
Fundamental global declarations, included by almost all other header/source files.
Declaration of gmio_memblock and utility functions.
int(* func_set_pos)(void *cookie, const struct gmio_streampos *pos)
Function that restores the current position in the stream to pos.
Definition: stream.h:146
struct gmio_stream gmio_stream_stdio(FILE *file)
Returns a stream for standard FILE* (cookie will hold file)
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:203
size_t(* func_read)(void *cookie, void *ptr, size_t size, size_t count)
Function that reads block of data from stream.
Definition: stream.h:115
Declaration of gmio_streampos and utility functions.
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:205
Specifies a position within a stream.
Definition: streampos.h:54
int64_or_long gmio_streamsize_t
Type able to represent the size(in bytes) of a stream.
Definition: stream.h:57
Stream that can get input from an arbitrary data source or can write output to an arbitrary data sink...
Definition: stream.h:78
int64_or_long gmio_streamoffset_t
Type able to represent the offset position within a stream.
Definition: stream.h:62
void * cookie
Opaque pointer on the user stream, passed as first argument to hook functions.
Definition: stream.h:82
int(* func_error)(void *cookie)
Function that checks error indicator.
Definition: stream.h:102
gmio_streamsize_t(* func_size)(void *cookie)
Function that returns the size(in bytes) of the stream.
Definition: stream.h:131
struct gmio_stream gmio_stream_null()
Returns a null stream.