1 | /* see copyright notice in squirrel.h */ |
2 | #ifndef _SQSTD_STREAM_H_ |
3 | #define _SQSTD_STREAM_H_ |
4 | |
5 | SQInteger _stream_readblob(HSQUIRRELVM v); |
6 | SQInteger _stream_readline(HSQUIRRELVM v); |
7 | SQInteger _stream_readn(HSQUIRRELVM v); |
8 | SQInteger _stream_writeblob(HSQUIRRELVM v); |
9 | SQInteger _stream_writen(HSQUIRRELVM v); |
10 | SQInteger _stream_seek(HSQUIRRELVM v); |
11 | SQInteger _stream_tell(HSQUIRRELVM v); |
12 | SQInteger _stream_len(HSQUIRRELVM v); |
13 | SQInteger _stream_eos(HSQUIRRELVM v); |
14 | SQInteger _stream_flush(HSQUIRRELVM v); |
15 | |
16 | #define _DECL_STREAM_FUNC(name,nparams,typecheck) {_SC(#name),_stream_##name,nparams,typecheck} |
17 | SQRESULT declare_stream(HSQUIRRELVM v,const SQChar* name,SQUserPointer typetag,const SQChar* reg_name,const SQRegFunction *methods,const SQRegFunction *globals); |
18 | #endif /*_SQSTD_STREAM_H_*/ |
19 | |