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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:541:    *! Makes this buffer read only until the returned object is released.    *!    *! @note    *! This currently simply returns a 0-length subbuffer.    */    PIKEFUN IOBuffer lock()    {    push_object( io_read_buffer( THIS, 0, 0 ) );    }    -  PIKEFUN string _sprintf(int o, mapping ignore) +  PIKEFUN string _sprintf(int o, mapping|void ignore)    flags ID_PROTECTED;    {    pop_n_elems(args);    if( o == 'O' )    {    push_text("IOBuffer(%d bytes, read=[..%d] data=[%d..%d] free=[%d..%d] %s%s)");    /* io_len [..offset] [offset..len] [..allocated] */    push_int(io_len(THIS));    push_int(THIS->offset-1);    push_int(THIS->offset);