summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/buffer.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-14 00:42:49 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commit445bcc8f464252649ae5d13add727420abe661d7 (patch)
tree94d4b00ce0eebafec9f8905e2c3611fd7144ef97 /include/mupdf/fitz/buffer.h
parentf0d993da8a086aaac201ec3c5e246446e9b40987 (diff)
downloadmupdf-445bcc8f464252649ae5d13add727420abe661d7.tar.xz
Add base64 string decoder.
Diffstat (limited to 'include/mupdf/fitz/buffer.h')
-rw-r--r--include/mupdf/fitz/buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/buffer.h b/include/mupdf/fitz/buffer.h
index 28adc46b..2749c32c 100644
--- a/include/mupdf/fitz/buffer.h
+++ b/include/mupdf/fitz/buffer.h
@@ -78,6 +78,11 @@ fz_buffer *fz_new_buffer_from_data(fz_context *ctx, unsigned char *data, int siz
fz_buffer *fz_new_buffer_from_shared_data(fz_context *ctx, const char *data, int size);
/*
+ fz_new_buffer_from_base64: Create a new buffer with data decoded from a base64 input string.
+*/
+fz_buffer *fz_new_buffer_from_base64(fz_context *ctx, const char *data, int size);
+
+/*
fz_resize_buffer: Ensure that a buffer has a given capacity,
truncating data if required.