Searched refs:old_buf_size (Results 1 – 4 of 4) sorted by relevance
113 const old_buf_size = this.bb.capacity(); constant115 this.space += this.bb.capacity() - old_buf_size;313 const old_buf_size = bb.capacity(); constant316 if (old_buf_size & 0xC0000000) {320 const new_buf_size = old_buf_size << 1;322 nbb.setPosition(new_buf_size - old_buf_size);323 nbb.bytes().set(bb.bytes(), new_buf_size - old_buf_size);
262 int old_buf_size = bb.capacity(); in growByteBuffer() local266 if (old_buf_size == 0) { in growByteBuffer()270 … if (old_buf_size == MAX_BUFFER_SIZE) { // Ensure we don't grow beyond what fits in an int. in growByteBuffer()273 new_buf_size = (old_buf_size & 0xC0000000) != 0 ? MAX_BUFFER_SIZE : old_buf_size << 1; in growByteBuffer()279 nbb.position(new_buf_size - old_buf_size); in growByteBuffer()320 int old_buf_size = bb.capacity(); in prep() local326 space += bb.capacity() - old_buf_size; in prep()
147 $old_buf_size = $this->bb->capacity();149 $this->space += $this->bb->capacity() - $old_buf_size;162 $old_buf_size = $bb->capacity();163 if (($old_buf_size & 0xC0000000) != 0) {166 $new_buf_size = $old_buf_size << 1;171 $nbb->setPosition($new_buf_size - $old_buf_size);175 for ($i = $new_buf_size - $old_buf_size, $j = 0; $j < strlen($bb->_buffer); $i++, $j++) {
1778 int old_buf_size, ret; in http_seek_internal() local1811 old_buf_size = s->buf_end - s->buf_ptr; in http_seek_internal()1812 memcpy(old_buf, s->buf_ptr, old_buf_size); in http_seek_internal()1818 memcpy(s->buffer, old_buf, old_buf_size); in http_seek_internal()1820 s->buf_end = s->buffer + old_buf_size; in http_seek_internal()