Home
last modified time | relevance | path

Searched refs:old_buf_size (Results 1 – 4 of 4) sorted by relevance

/external/ruy/ruy/profiler/
Dprofiler.cc82 int old_buf_size = samples_buf_.size(); in Sample() local
83 samples_buf_.resize(old_buf_size + sample_size); in Sample()
85 samples_buf_.data() + old_buf_size); in Sample()
/external/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java239 int old_buf_size = bb.capacity(); in growByteBuffer() local
240 if ((old_buf_size & 0xC0000000) != 0) // Ensure we don't grow beyond what fits in an int. in growByteBuffer()
242 int new_buf_size = old_buf_size == 0 ? 1 : old_buf_size << 1; in growByteBuffer()
246 nbb.position(new_buf_size - old_buf_size); in growByteBuffer()
287 int old_buf_size = bb.capacity(); in prep() local
293 space += bb.capacity() - old_buf_size; in prep()
/external/flatbuffers/php/
DFlatbufferBuilder.php147 $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++) {
/external/flatbuffers/js/
Dflatbuffers.js302 var old_buf_size = this.bb.capacity();
304 this.space += this.bb.capacity() - old_buf_size;
567 var old_buf_size = bb.capacity();
570 if (old_buf_size & 0xC0000000) {
574 var new_buf_size = old_buf_size << 1;
576 nbb.setPosition(new_buf_size - old_buf_size);
577 nbb.bytes().set(bb.bytes(), new_buf_size - old_buf_size);