From eae26f958e024bcb78fbed61b0affe058861ac61 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Mon, 23 May 2005 15:25:48 +0000 Subject: [PATCH] 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) --- libopenjpeg/cio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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