2 functions were added, to fasten buffer transfers:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Mon, 23 May 2005 15:25:48 +0000 (15:25 +0000)
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Mon, 23 May 2005 15:25:48 +0000 (15:25 +0000)
void cio_read_to_buf(unsigned char* buf, int n)
void cio_write_from_buf(unsigned char* buf, int n)

libopenjpeg/cio.h

index c75a46534220f7400842946c444aa22095226b2b..e24f77d127e0dfe93dff7ecd7cb33c2ec12b2786 100644 (file)
@@ -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