From d46748ac59c3b8d8895d2671aa4b1eca3914d1d4 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 24 Feb 2021 20:43:11 +0100 Subject: Added buffer and garbage collection to stream --- stream.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'stream.h') diff --git a/stream.h b/stream.h index 5762bc8..f38b6ef 100644 --- a/stream.h +++ b/stream.h @@ -2,9 +2,18 @@ #include +struct buffer +{ + char * data; + int length; + int offset; +}; + struct stream { int fd; + struct buffer in; }; int stream_push_new(lua_State *, const int); +int stream_gc(lua_State *); -- cgit v1.1