1 #ifndef EAARLIO_STREAM_H 2 #define EAARLIO_STREAM_H 88 unsigned char *buffer);
110 unsigned char const *buffer);
180 #define eaarlio_stream_empty() \ 181 (struct eaarlio_stream) \ 183 NULL, NULL, NULL, NULL, NULL, NULL \ eaarlio_error(* close)(struct eaarlio_stream *self)
Close the stream.
Definition: stream.h:65
eaarlio_error(* write)(struct eaarlio_stream *self, uint64_t len, unsigned char const *buffer)
Writes bytes from a buffer to a stream.
Definition: stream.h:108
eaarlio_error
Definition: error.h:16
eaarlio_error(* seek)(struct eaarlio_stream *self, int64_t offset, int whence)
Set the current position for the stream.
Definition: stream.h:147
Error codes and handling.
eaarlio_error(* tell)(struct eaarlio_stream *self, int64_t *position)
Retrieve the current position in the stream.
Definition: stream.h:164
void * data
Internal data pointer.
Definition: stream.h:172
eaarlio_error(* read)(struct eaarlio_stream *self, uint64_t len, unsigned char *buffer)
Read bytes from a stream and place them in a buffer.
Definition: stream.h:86
Stream interface.
Definition: stream.h:47