summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-05-23 15:25:48 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-05-23 15:25:48 +0000
commiteae26f958e024bcb78fbed61b0affe058861ac61 (patch)
treea09487718cb7c5775a1f505e61aa7a0d1d403fcf
parentee7c2c28f18ee5fb76f2ef5f24cd559b0db63315 (diff)
2 functions were added, to fasten buffer transfers:
void cio_read_to_buf(unsigned char* buf, int n) void cio_write_from_buf(unsigned char* buf, int n)
-rw-r--r--libopenjpeg/cio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libopenjpeg/cio.h b/libopenjpeg/cio.h
index c75a4653..e24f77d1 100644
--- a/libopenjpeg/cio.h
+++ b/libopenjpeg/cio.h
@@ -94,4 +94,14 @@ unsigned int cio_read(int n);
*/
void cio_skip(int n);
+/*
+ * Read n bytes, copy to buffer
+ */
+void cio_read_to_buf(unsigned char* buf, int n);/* Glenn Pearson adds */
+
+/*
+ * Write n bytes, copy from buffer
+ */
+void cio_write_from_buf(unsigned char* buf, int n);/* Glenn Pearson adds */
+
#endif