diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-05-23 15:25:48 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-05-23 15:25:48 +0000 |
| commit | eae26f958e024bcb78fbed61b0affe058861ac61 (patch) | |
| tree | a09487718cb7c5775a1f505e61aa7a0d1d403fcf /libopenjpeg | |
| parent | ee7c2c28f18ee5fb76f2ef5f24cd559b0db63315 (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)
Diffstat (limited to 'libopenjpeg')
| -rw-r--r-- | libopenjpeg/cio.h | 10 |
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 |
