diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-02-28 17:47:50 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-02-28 17:47:50 +0100 |
commit | 9d1fbd85969dbfcf5de9e458f7d9387f3fc8959c (patch) | |
tree | 163e47d4656492c873d19006bae9f697a3565ff6 /include/fitz/stm_buffer.h | |
parent | 4ee4da1c6d2db727790dd72a60a7f29d43e802b9 (diff) | |
download | mupdf-9d1fbd85969dbfcf5de9e458f7d9387f3fc8959c.tar.xz |
Merge and move header files into the source directories.
Diffstat (limited to 'include/fitz/stm_buffer.h')
-rw-r--r-- | include/fitz/stm_buffer.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/fitz/stm_buffer.h b/include/fitz/stm_buffer.h deleted file mode 100644 index 1a6f34ad..00000000 --- a/include/fitz/stm_buffer.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Data buffers for streams and filters. - * - * bp is the pointer to the allocated memory - * rp is read-position (*in->rp++ to read data) - * wp is write-position (*out->wp++ to write data) - * ep is the sentinel - * - * Only the data between rp and wp is valid data. - * - * Writers set eof to true at the end. - * Readers look at eof. - * - * A buffer owns the memory it has allocated, unless ownsdata is false, - * in which case the creator of the buffer owns it. - */ - -typedef struct fz_buffer_s fz_buffer; - -#define FZ_BUFSIZE (8 * 1024) - -struct fz_buffer_s -{ - int refs; - int ownsdata; - unsigned char *bp; - unsigned char *rp; - unsigned char *wp; - unsigned char *ep; - int eof; -}; - -fz_error *fz_newbuffer(fz_buffer **bufp, int size); -fz_error *fz_newbufferwithmemory(fz_buffer **bufp, unsigned char *data, int size); - -fz_error *fz_rewindbuffer(fz_buffer *buf); -fz_error *fz_growbuffer(fz_buffer *buf); - -fz_buffer *fz_keepbuffer(fz_buffer *buf); -void fz_dropbuffer(fz_buffer *buf); - |