pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1129:    PIKEFUN int(-1..) try_output()    {    Buffer *io = THIS;    if (LIKELY(io->output.u.object) && LIKELY(!io->output_triggered))    RETURN io_actually_trigger_output(io);    RETURN 0;    }       /*! @decl int read_sint( int size )    *! -  *! Read a network byte order two:s complement signed number of size n*8 bits, then -  *! return it. +  *! Read a network byte order two:s complement signed number of size +  *! n*8 bits, then return it.    *!    *! Will return UNDEFINED if there is not enough buffer space    *! available unless error mode is set to throw errors.    */    PIKEFUN int read_sint( int nbytes )    {    Buffer *io = THIS;    struct pike_string *tmp;    Pike_sp--;    if( !io_avail( io, nbytes ) )