# sqstdstream.h

    00001 /*  see copyright notice in squirrel.h */
    00002 #ifndef _SQSTD_STREAM_H_
    00003 #define _SQSTD_STREAM_H_
    00004
    00005 SQInteger _stream_readblob(HSQUIRRELVM v);
    00006 SQInteger _stream_readline(HSQUIRRELVM v);
    00007 SQInteger _stream_readn(HSQUIRRELVM v);
    00008 SQInteger _stream_writeblob(HSQUIRRELVM v);
    00009 SQInteger _stream_writen(HSQUIRRELVM v);
    00010 SQInteger _stream_seek(HSQUIRRELVM v);
    00011 SQInteger _stream_tell(HSQUIRRELVM v);
    00012 SQInteger _stream_len(HSQUIRRELVM v);
    00013 SQInteger _stream_eos(HSQUIRRELVM v);
    00014 SQInteger _stream_flush(HSQUIRRELVM v);
    00015
    00016 #define _DECL_STREAM_FUNC(name,nparams,typecheck) {_SC(#name),_stream_##name,nparams,typecheck}
    00017 SQRESULT declare_stream(HSQUIRRELVM v,const SQChar* name,SQUserPointer typetag,const SQChar* reg_name,SQRegFunction *methods,SQRegFunction *globals);
    00018 #endif /*_SQSTD_STREAM_H_*/