diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-09-05 15:30:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-09-05 15:30:45 -0300 |
commit | 14e416355f83cf0a1b871eedec2c92b86dbe76d6 (patch) | |
tree | 620c7fa0b811d5f91d3d2f9b4879b289df6d137c /lzio.h | |
parent | f33cda8d6eb1cac5b9042429e85f1096175c7ca5 (diff) | |
download | lua-14e416355f83cf0a1b871eedec2c92b86dbe76d6.tar.gz lua-14e416355f83cf0a1b871eedec2c92b86dbe76d6.tar.bz2 lua-14e416355f83cf0a1b871eedec2c92b86dbe76d6.zip |
Added suport for Fixed Buffers
A fixed buffer keeps a binary chunk "forever", so that the program
does not need to copy some of its parts when loading it.
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -48,6 +48,7 @@ LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, | |||
48 | void *data); | 48 | void *data); |
49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ | 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ |
50 | 50 | ||
51 | LUAI_FUNC const void *luaZ_getaddr (ZIO* z, size_t n); | ||
51 | 52 | ||
52 | 53 | ||
53 | /* --------- Private Part ------------------ */ | 54 | /* --------- Private Part ------------------ */ |