summaryrefslogtreecommitdiff
path: root/src/lzio.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lzio.js')
-rw-r--r--src/lzio.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lzio.js b/src/lzio.js
index 9aa25bd..3d877aa 100644
--- a/src/lzio.js
+++ b/src/lzio.js
@@ -10,6 +10,10 @@ class MBuffer {
}
}
+const luaZ_buffer = function(buff) {
+ return buff.buffer;
+};
+
const luaZ_buffremove = function(buff, i) {
buff.n -= i;
};
@@ -84,6 +88,7 @@ const luaZ_read = function(z, b, b_offset, n) {
};
module.exports.EOZ = EOZ;
+module.exports.luaZ_buffer = luaZ_buffer;
module.exports.luaZ_buffremove = luaZ_buffremove;
module.exports.luaZ_fill = luaZ_fill;
module.exports.luaZ_read = luaZ_read;