Back to home page

Enduro/X

 
 

    


0001 /*  see copyright notice in pscript.h */
0002 #ifndef _PSSTD_STREAM_H_
0003 #define _PSSTD_STREAM_H_
0004 
0005 PSInteger _stream_readblob(HPSCRIPTVM v);
0006 PSInteger _stream_readline(HPSCRIPTVM v);
0007 PSInteger _stream_readn(HPSCRIPTVM v);
0008 PSInteger _stream_writeblob(HPSCRIPTVM v);
0009 PSInteger _stream_writen(HPSCRIPTVM v);
0010 PSInteger _stream_seek(HPSCRIPTVM v);
0011 PSInteger _stream_tell(HPSCRIPTVM v);
0012 PSInteger _stream_len(HPSCRIPTVM v);
0013 PSInteger _stream_eos(HPSCRIPTVM v);
0014 PSInteger _stream_flush(HPSCRIPTVM v);
0015 
0016 #define _DECL_STREAM_FUNC(name,nparams,typecheck) {_SC(#name),_stream_##name,nparams,typecheck}
0017 PSRESULT declare_stream(HPSCRIPTVM v,const PSChar* name,PSUserPointer typetag,const PSChar* reg_name,const PSRegFunction *methods,const PSRegFunction *globals);
0018 #endif /*_PSSTD_STREAM_H_*/