aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 12:41:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 12:41:05 -0300
commit41964648eea1427d53934b886abb68cc8457b019 (patch)
treeb0388dfebe6614d5d49306193faf78f8b9e1a6a1 /lzio.h
parent502214f8a551cd01d94677f98a40aa51531ef71d (diff)
downloadlua-41964648eea1427d53934b886abb68cc8457b019.tar.gz
lua-41964648eea1427d53934b886abb68cc8457b019.tar.bz2
lua-41964648eea1427d53934b886abb68cc8457b019.zip
long strings are created directly in final position when possible
(instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lzio.h b/lzio.h
index 8a0c8171..fb310b99 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.h,v 1.29 2014/12/19 13:45:40 roberto Exp roberto $ 2** $Id: lzio.h,v 1.30 2014/12/19 17:26:14 roberto Exp roberto $
3** Buffered streams 3** Buffered streams
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -44,7 +44,6 @@ typedef struct Mbuffer {
44#define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) 44#define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0)
45 45
46 46
47LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
48LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 47LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
49 void *data); 48 void *data);
50LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ 49LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */