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