1 #ifndef foomemblockqhfoo
2 #define foomemblockqhfoo
10 struct memblockq* memblockq_new(size_t maxlength, size_t base, size_t prebuf);
11 void memblockq_free(struct memblockq* bq);
13 void memblockq_push(struct memblockq* bq, struct memchunk *chunk, size_t delta);
15 int memblockq_pop(struct memblockq* bq, struct memchunk *chunk);
16 int memblockq_peek(struct memblockq* bq, struct memchunk *chunk);
17 void memblockq_drop(struct memblockq *bq, size_t length);
19 void memblockq_shorten(struct memblockq *bq, size_t length);
20 void memblockq_empty(struct memblockq *bq);
22 int memblockq_is_readable(struct memblockq *bq);
23 int memblockq_is_writable(struct memblockq *bq, size_t length);
25 uint32_t memblockq_get_delay(struct memblockq *bq);
26 uint32_t memblockq_get_length(struct memblockq *bq);