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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1214:    *! Add @[nbytes] bytes of padding, if @[byte] is not specified the    *! area will be filled with 0's, otherwise the specified byte will    *! be repeated.    */    PIKEFUN Buffer add_padding( int nbytes, int|void _byte )    {    Buffer *io = THIS;    int byte = 0;    if( _byte ) byte = _byte->u.integer;    memset( io_add_space( io, nbytes,0), byte, nbytes ); +  io->len += nbytes;    Pike_sp -= args;    ref_push_object( io->this );    }       /*! @decl Buffer add( AddArgument ... data )    *! @code    *! private typedef @[System.Memory]|@[Stdio.Buffer]|@[String.Buffer] BufferObject;    *! private typedef BufferObject|string(8bit)|int(8bit)|array(AddArgument) AddArgument;    *! @endcode    *!