sqstdstream.h 813 B

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