aboutsummaryrefslogtreecommitdiff
path: root/src/nbc/gzip.c
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-03-15 15:26:20 -0400
committerCalvin <calvin@EESI>2013-03-15 15:26:20 -0400
commitb632667ce57af89691407bb8668e1512775278ae (patch)
treeb5742cef185f1cc4a7ba6005b5b4116ce7558a01 /src/nbc/gzip.c
parent39e39f82cc38d71018882b0aaaf58255858a7c56 (diff)
nbc added
Diffstat (limited to 'src/nbc/gzip.c')
-rw-r--r--src/nbc/gzip.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nbc/gzip.c b/src/nbc/gzip.c
new file mode 100644
index 0000000..d2bf98f
--- /dev/null
+++ b/src/nbc/gzip.c
@@ -0,0 +1,13 @@
+#include <zlib.h>
+
+int
+gzreadoffset(gzFile file, voidp buf, unsigned offset, unsigned len)
+{
+ return gzread(file, buf + offset, len);
+}
+
+int
+gzwriteoffset(gzFile file, voidpc buf, unsigned offset, unsigned len)
+{
+ return gzwrite(file, buf + offset, len);
+}