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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Buffer.pike:1:   #pike __REAL_VERSION__   #pragma strict_types      //! String buffer with the possibility to read and write data   //! as they would be formatted in structs.      inherit Stdio.Buffer;    + this_program add_hstring(string(8bit)|Stdio.Buffer str, int sz) + { +  return [object(this_program)]::add_hstring(str,sz); + } +  +    //! Create a new buffer, optionally initialized with the   //! value @[s].   void create(void|string(0..255) s)   {    if( s && strlen(s) )    ::create(s);    else    ::create();    set_error_mode(.BufferError);   }
pike.git/lib/modules/SSL.pmod/Buffer.pike:40:   //!   //! @param i   //! Unsigned integer to append.   //! @param len   //! Length of integer in bytes.   this_program put_uint(int i, int(0..) len)   {    return [object(this_program)]add_int(i,len);   }    - //! Appends a variable stringĀ @[s] preceded with an unsigned integer - //! of the size @[len_width] declaring the length of the string. The - //! string @[s] should be 8 bits wide. - this_program put_var_string(string(0..255) s, int(0..) len_width) - { -  return [object(this_program)]add_hstring(s,len_width); - } -  +    //! Appends a bignum @[i] as a variable string preceded with an   //! unsigned integer of the size @[len_width] declaring the length   //! of the string. @[len_width] defaults to 2.   this_program put_bignum(Gmp.mpz i, int(0..)|void len_width)   {    return [object(this_program)]add_hstring(i->digits(256),len_width||2);   }      //! Appends the fix sized string @[s] to the buffer.   this_program put_fix_string(string(0..255) s)