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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:712:    Pike_fatal("Oddities abound\n");   #endif    *d = pad;    }    if( pad )    {    while(exp--)    *d++ ^= 0xff; /* pad, but that is 0xff */    mpz_clear(&tmp);    } +  io_trigger_output( io );    }       static void io_add_int_uc( Buffer *io, ptrdiff_t i, size_t bytes )    {    unsigned char *x = io->buffer+io->len;    io->len += bytes;    while(bytes--)    {    x[bytes] = i;    i>>=8;
pike.git/src/modules/_Stdio/buffer.cmod:1207:    Buffer *io = THIS;    int byte = 0;    if( _byte ) byte = _byte->u.integer;       if( nbytes < 0 )    Pike_error("Cannot add negative padding.\n");       memset( io_add_space( io, nbytes,0), byte, nbytes );    io->len += nbytes;    Pike_sp -= args; +  io_trigger_output( io );    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    *!    *! Add the items in data to the end of the buffer.
pike.git/src/modules/_Stdio/buffer.cmod:1313:    Buffer *io = THIS;    unsigned char *p = io_add_space(io,4,0);    if (!int64_from_bignum(&i, mpz)) {    SIMPLE_ARG_TYPE_ERROR("add_int32", 1, "int|Gmp.mpz");    }    p[0] = i>>24;    p[1] = i>>16;    p[2] = i>>8;    p[3] = i;    io->len += 4; +  io_trigger_output( io );    ref_push_object(Pike_fp->current_object);    }       /*! @decl Buffer add_hstring( string(8bit) data, int size_size )    *! @decl Buffer add_hstring( Stdio.Buffer data, int size_size )    *! @decl Buffer add_hstring( System.Memory data, int size_size )    *! @decl Buffer add_hstring( String.Buffer data, int size_size )    *! @decl Buffer add_hstring( int(8bit) data, int size_size )    *! @decl Buffer add_hstring( array data, int size_size )    *! @decl Buffer add_hstring( int|string(8bit)|Stdio.Buffer|System.Memory|array data, int size_size, int offset )