diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 17:06:00 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-29 15:56:45 +0100 |
commit | 2b65dae7e2ae091c03ffe0811aa4e60457a4cd84 (patch) | |
tree | 57593ffc1d970bf67608e5137df3630ed154b31e /include/mupdf/fitz/buffer.h | |
parent | 63c0874392c5159e251514db48891500e9854c5d (diff) | |
download | mupdf-2b65dae7e2ae091c03ffe0811aa4e60457a4cd84.tar.xz |
Pass fz_font to pdf_add_xxx_font_res instead of a fz_buffer.
Make sure all fz_fonts have a ft_buffer available.
Diffstat (limited to 'include/mupdf/fitz/buffer.h')
-rw-r--r-- | include/mupdf/fitz/buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mupdf/fitz/buffer.h b/include/mupdf/fitz/buffer.h index 64096ca4..6f0e812f 100644 --- a/include/mupdf/fitz/buffer.h +++ b/include/mupdf/fitz/buffer.h @@ -44,6 +44,7 @@ struct fz_buffer_s unsigned char *data; int cap, len; int unused_bits; + int shared; }; /* @@ -72,6 +73,11 @@ fz_buffer *fz_new_buffer(fz_context *ctx, int capacity); fz_buffer *fz_new_buffer_from_data(fz_context *ctx, unsigned char *data, int size); /* + fz_new_buffer_from_shared_data: Like fz_new_buffer, but does not take ownership. +*/ +fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, unsigned char *data, int size); + +/* fz_resize_buffer: Ensure that a buffer has a given capacity, truncating data if required. |