27typedef struct input_stream
31 bool (*
accumulate)(
struct input_stream* self,
size_t count);
35#define InputStreamInit(Size, Accumulate) istream_init(Size, ((bool (*)(istream_t*, size_t))(Accumulate)))
45#define istream_accumulate(Stream, Count) ((istream_t*)(Stream))->accumulate((istream_t*)Stream, Count)
deque_t queue_t
A queue is First In First Out.
bool(* accumulate)(struct input_stream *self, size_t count)
Ask if the stream can provide at least count bytes to read.
queue_t buffer
Circular buffer of bytes.