Searched refs:old_buf_size (Results 1 – 3 of 3) sorted by relevance
228 int old_buf_size = bb.capacity(); in growByteBuffer() local229 if ((old_buf_size & 0xC0000000) != 0) // Ensure we don't grow beyond what fits in an int. in growByteBuffer()231 int new_buf_size = old_buf_size == 0 ? 1 : old_buf_size << 1; in growByteBuffer()234 nbb.position(new_buf_size - old_buf_size); in growByteBuffer()275 int old_buf_size = bb.capacity(); in prep() local281 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++) {
296 var old_buf_size = this.bb.capacity();298 this.space += this.bb.capacity() - old_buf_size;561 var old_buf_size = bb.capacity();564 if (old_buf_size & 0xC0000000) {568 var new_buf_size = old_buf_size << 1;570 nbb.setPosition(new_buf_size - old_buf_size);571 nbb.bytes().set(bb.bytes(), new_buf_size - old_buf_size);