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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1038:    PIKEFUN IOBuffer add_int8( int i )    {    IOBuffer *io = THIS;    *io_add_space(io,1,0)=i;    io->len++;    Pike_sp--;    ref_push_object(Pike_fp->current_object);    }       /*! @decl IOBuffer add_int16( int(0..65535) ) -  *! @decl IOBuffer add_short( int(0..65535) ) +     *!    *! Add a 16-bit network byte order value to the buffer    */    PIKEFUN IOBuffer add_int16( int i )    {    IOBuffer *io = THIS;    unsigned char *p = io_add_space(io,2,0);    p[0] = i>>8;    p[1] = i;    io->len += 2;    ref_push_object(Pike_fp->current_object);    }    -  PIKEFUN IOBuffer add_short( int i ) -  { -  IOBuffer *io = THIS; -  unsigned char *p = io_add_space(io,2,0); -  p[0] = i>>8; -  p[1] = i; -  io->len += 2; -  ref_push_object(Pike_fp->current_object); -  } -  +     /*! @decl IOBuffer add_int32( int i )    *! Adds a 32 bit network byte order value to the buffer    */    PIKEFUN int(0..) add_int32( int i )    {    IOBuffer *io = THIS;    unsigned char *p = io_add_space(io,4,0);    p[0] = i>>24;    p[1] = i>>16;    p[2] = i>>8;