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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:557:    return end_shared_string(s);    }       static struct object *io_read_buffer( Buffer *io, size_t len, int do_copy )    {    struct object *b;    Buffer *to;    if( !io_avail(io,len))    return NULL;    -  b = low_clone( Buffer_program ); -  call_c_initializers(b); +  b = fast_clone_object( Buffer_program );    to = get_storage(b,Buffer_program);       io_lock( io );       to->buffer = io_read_pointer(io);    to->len = len;    to->sub = Pike_fp->current_object;    add_ref(to->sub);    io_consume( io, len );