blob: d4fafa607dcbc1f3aca25f8d8802fb6b7c103556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <lua.h>
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);
|