X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.h;h=cc965b0391ac9c716acfadcdfec504213e142df2;hb=72834fe606590dc25a7965bb6989a287ae4d8f40;hp=b90b57a789c7ff0fd3790a0ba19917ef624e5550;hpb=2e2252fba96c094b53475c87bc41f25fe6b946bb;p=swftools.git diff --git a/lib/q.h b/lib/q.h index b90b57a..cc965b0 100644 --- a/lib/q.h +++ b/lib/q.h @@ -35,6 +35,7 @@ typedef struct _mem_t { char*buffer; int len; int pos; + int read_pos; } mem_t; /* fifo buffered growing mem region */ @@ -127,6 +128,7 @@ unsigned int crc32_add_string(unsigned int crc32, const char*s); void mem_init(mem_t*mem); int mem_put(mem_t*m, void*data, int length); int mem_putstring(mem_t*m, string_t str); +int mem_get(mem_t*m, void*data, int length); void mem_clear(mem_t*mem); void mem_destroy(mem_t*mem);