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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:733:    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:1222:    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.