pike.git / lib / modules / SSL.pmod / Buffer.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Buffer.pike:16:    return [object(this_program)]::add_int(i,sz);   }      this_program add(string(8bit)|Stdio.Buffer str)   {    return [object(this_program)]::add(str);   }      //! Create a new buffer, optionally initialized with the   //! value @[s]. - protected void create(void|string(8bit) s) + protected void create(void|string(8bit)|Stdio.Buffer s)   { -  if( s && strlen(s) ) +  if( s )    ::create(s); -  else -  ::create(); +     set_error_mode(.BufferError);   }      //! Appends an array of unsigned integers of width @[item_size]   //! to the buffer, preceded with an unsigned integer @[len] declaring   //! the size of the array in bytes.   this_program add_int_array(array(int) data, int(0..) item_size, int(0..) len)   {    add_int(sizeof(data)*item_size, len );    return [object(this_program)]add_ints(data,item_size);