Removing lua_reader and lua_writer from StreamBuffer
This commit is contained in:
@@ -559,3 +559,12 @@ void LuaKeywordParser::final_check_throw() {
|
||||
luaL_error(L_, "%s", err.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
const char *LuaByteReader::lua_reader(lua_State *L, void *ud, size_t *size) {
|
||||
LuaByteReader *reader = (LuaByteReader*)ud;
|
||||
*size = reader->size_;
|
||||
const char *data = reader->data_;
|
||||
reader->data_ = 0;
|
||||
reader->size_ = 0;
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user