Lines Matching refs:buflen
71 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8… in php_stream_bucket_new() argument
81 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new()
82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
83 bucket->buflen = buflen; in php_stream_bucket_new()
87 bucket->buflen = buflen; in php_stream_bucket_new()
117 retval->buf = pemalloc(retval->buflen, retval->is_persistent); in php_stream_bucket_make_writeable()
118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
134 (*left)->buflen = length; in php_stream_bucket_split()
140 (*right)->buflen = in->buflen - length; in php_stream_bucket_split()
141 (*right)->buf = pemalloc((*right)->buflen, in->is_persistent); in php_stream_bucket_split()
142 memcpy((*right)->buf, in->buf + length, (*right)->buflen); in php_stream_bucket_split()
368 if (stream->readbuflen - stream->writepos < bucket->buflen) { in php_stream_filter_append_ex()
369 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex()
372 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex()
373 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
442 flushed_size += bucket->buflen; in _php_stream_filter_flush()
463 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
464 stream->writepos += bucket->buflen; in _php_stream_filter_flush()
471 ssize_t count = stream->ops->write(stream, bucket->buf, bucket->buflen); in _php_stream_filter_flush()