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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:2412:    *! @endcode    *! @note    *! Just calling @[rewind_on_error] without assigning the return    *! value to something will not do anything. You need to keep the    *! object around while the rewind-to position is still valid.    *!    *! Keeping the object around forbids the buffer from moving data    *! inside itself, this means that it can only grow. So do not keep    *! the rewind key when it is not needed.    */ -  PIKEFUN Buffer.RewindKey rewind_on_error() +  PIKEFUN object(Buffer.RewindKey) rewind_on_error()    {    push_object( io_create_rewind_key( THIS, 1 ) );    }    -  PIKEFUN Buffer.RewindKey rewind_key() +  PIKEFUN object(Buffer.RewindKey) rewind_key()    {    push_object( io_create_rewind_key( THIS, 0 ) );    }       /*! @decl void create( int|void len )    *! @decl void create( string(8bit) contents )    *! @decl void create( System.Memory|String.Buffer contents )    *!    *! If passed an integer or no argument, create a buffer of that    *! size, or if no argument is given, 226 bytes.