#pragma once #include struct buffer { char * data; int length; int offset; int next; int allocated; }; struct stream { int fd; struct buffer in; }; int stream_push_new(lua_State *, const int); int stream_gc(lua_State *); int stream_read(lua_State *); int stream_readk(lua_State *, const int, lua_KContext);