1/* see copyright notice in squirrel.h */
2#ifndef _SQSTD_STREAM_H_
3#define _SQSTD_STREAM_H_
4
5SQInteger _stream_readblob(HSQUIRRELVM v);
6SQInteger _stream_readline(HSQUIRRELVM v);
7SQInteger _stream_readn(HSQUIRRELVM v);
8SQInteger _stream_writeblob(HSQUIRRELVM v);
9SQInteger _stream_writen(HSQUIRRELVM v);
10SQInteger _stream_seek(HSQUIRRELVM v);
11SQInteger _stream_tell(HSQUIRRELVM v);
12SQInteger _stream_len(HSQUIRRELVM v);
13SQInteger _stream_eos(HSQUIRRELVM v);
14SQInteger _stream_flush(HSQUIRRELVM v);
15
16#define _DECL_STREAM_FUNC(name,nparams,typecheck) {_SC(#name),_stream_##name,nparams,typecheck}
17SQRESULT 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