Home
last modified time | relevance | path

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

/third_party/flatbuffers/ts/
Dbuilder.ts113 const old_buf_size = this.bb.capacity(); constant
115 this.space += this.bb.capacity() - old_buf_size;
313 const old_buf_size = bb.capacity(); constant
316 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);
/third_party/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java262 int old_buf_size = bb.capacity(); in growByteBuffer() local
266 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() local
326 space += bb.capacity() - old_buf_size; in prep()
/third_party/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++) {
/third_party/ffmpeg/libavformat/
Dhttp.c1778 int old_buf_size, ret; in http_seek_internal() local
1811 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()