#pragma once #include struct stream; // TODO: Remove buffer to stream dependency. struct buffer { char * data; int length; int offset; int next; int allocated; }; void grow(lua_State *, struct buffer *); int prepare_at_least(lua_State *, struct stream *, const int, lua_KContext); int read_more(lua_State *, struct stream *, const int, lua_KContext); int until(struct buffer *, const char *, const int);