Searched refs:old_buf_size (Results 1 – 3 of 3) sorted by relevance
131 int old_buf_size = bb.capacity(); in growByteBuffer() local132 if ((old_buf_size & 0xC0000000) != 0) // Ensure we don't grow beyond what fits in an int. in growByteBuffer()134 int new_buf_size = old_buf_size << 1; in growByteBuffer()137 nbb.position(new_buf_size - old_buf_size); in growByteBuffer()178 int old_buf_size = bb.capacity(); in prep() local180 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++) {
283 var old_buf_size = this.bb.capacity();285 this.space += this.bb.capacity() - old_buf_size;548 var old_buf_size = bb.capacity();551 if (old_buf_size & 0xC0000000) {555 var new_buf_size = old_buf_size << 1;557 nbb.setPosition(new_buf_size - old_buf_size);558 nbb.bytes().set(bb.bytes(), new_buf_size - old_buf_size);