Home
last modified time | relevance | path

Searched refs:_buffer (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/flatbuffers/net/FlatBuffers/
DByteBuffer.cs83 private byte[] _buffer; field in FlatBuffers.ByteArrayAllocator
87 _buffer = buffer; in ByteArrayAllocator()
101 System.Buffer.BlockCopy(_buffer, 0, newBuffer, newSize - Length, Length); in GrowFront()
102 _buffer = newBuffer; in GrowFront()
107 public override Span<byte> Span => _buffer;
108 public override ReadOnlySpan<byte> ReadOnlySpan => _buffer;
109 public override Memory<byte> Memory => _buffer;
110 public override ReadOnlyMemory<byte> ReadOnlyMemory => _buffer;
115 Length = _buffer.Length; in InitBuffer()
117 Buffer = _buffer; in InitBuffer()
[all …]
/third_party/node/deps/npm/node_modules/sshpk/lib/
Dssh-buffer.js14 this._buffer = opts.buffer || Buffer.alloc(this._size);
19 return (this._buffer.slice(0, this._offset));
23 return (this._offset >= this._buffer.length);
27 return (this._buffer.slice(this._offset));
37 this._buffer.copy(buf, 0);
38 this._buffer = buf;
46 var len = this._buffer.readUInt32BE(this._offset);
48 assert.ok(this._offset + len <= this._buffer.length,
51 var buf = this._buffer.slice(this._offset, this._offset + len);
62 while (offset < this._buffer.length &&
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Buffers/
DArrayBufferWriter.cs47 private T[] _buffer; field in Google.Protobuf.Buffers.ArrayBufferWriter
58 _buffer = new T[0]; in ArrayBufferWriter()
81 _buffer = new T[initialCapacity]; in ArrayBufferWriter()
88 public ReadOnlyMemory<T> WrittenMemory => _buffer.AsMemory(0, _index);
93 public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, _index);
103 public int Capacity => _buffer.Length;
108 public int FreeCapacity => _buffer.Length - _index;
118 Debug.Assert(_buffer.Length >= _index); in Clear()
119 _buffer.AsSpan(0, _index).Clear(); in Clear()
140 if (_index > _buffer.Length - count) in Advance()
[all …]
/third_party/flatbuffers/php/
DByteBuffer.php25 public $_buffer; variable in Google\\FlatBuffers\\ByteBuffer
40 $bb->_buffer = $bytes;
50 $this->_buffer = str_repeat("\0", $size);
58 return strlen($this->_buffer);
90 return strlen($this->_buffer);
98 return substr($this->_buffer, $this->_pos);
124 $this->_buffer[$offset + $i] = chr($data >> $i * 8);
128 $this->_buffer[$offset + $count - 1 - $i] = chr($data >> $i * 8);
147 $r |= ord($this->_buffer[$offset + $i]) << $i * 8;
151 $r |= ord($this->_buffer[$offset + $count -1 - $i]) << $i * 8;
[all …]
/third_party/node/deps/npm/node_modules/socks/build/common/
Dreceivebuffer.js5 this._buffer = Buffer.allocUnsafe(size);
16 if (this._offset + data.length >= this._buffer.length) {
17 const tmp = this._buffer;
18 …this._buffer = Buffer.allocUnsafe(Math.max(this._buffer.length + this._originalSize, this._buffer.…
19 tmp.copy(this._buffer);
21 data.copy(this._buffer, this._offset);
28 return this._buffer.slice(0, length);
35 this._buffer.slice(0, length).copy(value);
36 this._buffer.copyWithin(0, length, length + this._offset - length);
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/services/
Dbuffers.dart14 List<E> _buffer;
16 /// Returns a view of [_buffer] as a [TypedData].
17 TypedData get _typedBuffer => _buffer as TypedData;
23 : _buffer = buffer,
34 return _buffer[index];
42 _buffer[index] = value;
50 _buffer[i] = defaultValue;
52 } else if (newLength > _buffer.length) {
54 if (_buffer.isEmpty) {
59 newBuffer.setRange(0, _length, _buffer);
[all …]
Dserialization.dart16 _buffer = Uint8Buffer();
21 Uint8Buffer _buffer;
27 _buffer.add(byte);
33 _buffer.addAll(_eightBytesAsList, 0, 2);
39 _buffer.addAll(_eightBytesAsList, 0, 4);
45 _buffer.addAll(_eightBytesAsList, 0, 4);
51 _buffer.addAll(_eightBytesAsList, 0, 8);
58 _buffer.addAll(_eightBytesAsList);
63 _buffer.addAll(list);
69 _buffer
[all …]
/third_party/python/Lib/asyncio/
Dstreams.py391 self._buffer = bytearray()
403 if self._buffer:
444 if self._paused and len(self._buffer) <= self._limit:
454 return self._eof and not self._buffer
462 self._buffer.extend(data)
467 len(self._buffer) > 2 * self._limit):
529 if self._buffer.startswith(sep, e.consumed):
530 del self._buffer[:e.consumed + seplen]
532 self._buffer.clear()
588 buflen = len(self._buffer)
[all …]
Dproactor_events.py57 self._buffer = None # None or bytearray.
84 if self._buffer:
107 if not self._buffer and self._write_fut is None:
150 self._buffer = None
172 if self._buffer is not None:
173 size += len(self._buffer)
359 assert self._buffer is None
362 elif not self._buffer: # WRITING -> BACKED UP
364 self._buffer = bytearray(data)
368 self._buffer.extend(data)
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/foundation/
Dserialization.dart18 _buffer = Uint8Buffer();
23 Uint8Buffer _buffer;
29 _buffer.add(byte);
35 _buffer.addAll(_eightBytesAsList, 0, 2);
41 _buffer.addAll(_eightBytesAsList, 0, 4);
47 _buffer.addAll(_eightBytesAsList, 0, 4);
53 _buffer.addAll(_eightBytesAsList, 0, 8);
60 _buffer.addAll(_eightBytesAsList);
65 _buffer.addAll(list);
71 _buffer.addAll(list.buffer.asUint8List(list.offsetInBytes, 4 * list.length));
[all …]
/third_party/python/Lib/
Dbz2.py93 self._buffer = io.BufferedReader(raw)
107 self._buffer.close()
119 self._buffer = None
133 return self.readable() and self._buffer.seekable()
155 return self._buffer.peek(n)
164 return self._buffer.read(size)
176 return self._buffer.read1(size)
184 return self._buffer.readinto(b)
198 return self._buffer.readline(size)
212 return self._buffer.readlines(size)
[all …]
Dlzma.py132 self._buffer = io.BufferedReader(raw)
144 self._buffer.close()
145 self._buffer = None
170 return self.readable() and self._buffer.seekable()
191 return self._buffer.peek(size)
200 return self._buffer.read(size)
212 return self._buffer.read1(size)
222 return self._buffer.readline(size)
261 return self._buffer.seek(offset, whence)
267 return self._buffer.tell()
Dgzip.py81 self._buffer = prepend
92 return self._buffer[read:self._read]
96 return self._buffer[read:] + \
101 self._buffer = prepend
105 self._length = len(self._buffer)
110 self._buffer = None
188 self._buffer = io.BufferedReader(raw)
226 return self._buffer.raw._last_mtime
301 return self._buffer.read(size)
314 return self._buffer.read1(size)
[all …]
/third_party/node/deps/npm/node_modules/parallel-transform/
Dindex.js30 this._buffer = this._ordered ? cyclist(maxParallel) : [];
57 self._buffer.put(pos, (data === undefined || data === null) ? null : data);
60 self._buffer.push(data);
77 while (this._buffer.get(this._bottom) !== undefined) {
78 var data = this._buffer.del(this._bottom++);
84 while (this._buffer.length > 0) {
85 var data = this._buffer.pop();
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/dotzlib/DotZLib/
DCircularBuffer.cs24 private byte[] _buffer; field in DotZLib.CircularBuffer
30 _buffer = new byte[capacity]; in CircularBuffer()
44 _buffer[(_tail+i) % _capacity] = source[offset+i]; in Put()
55 _buffer[_tail++] = b; in Put()
65 destination[offset + i] = _buffer[(_head+i) % _capacity]; in Get()
77 int result = (int)_buffer[_head++ % _capacity]; in Get()
/third_party/zlib/contrib/dotzlib/DotZLib/
DCircularBuffer.cs24 private byte[] _buffer; field in DotZLib.CircularBuffer
30 _buffer = new byte[capacity]; in CircularBuffer()
44 _buffer[(_tail+i) % _capacity] = source[offset+i]; in Put()
55 _buffer[_tail++] = b; in Put()
65 destination[offset + i] = _buffer[(_head+i) % _capacity]; in Get()
77 int result = (int)_buffer[_head++ % _capacity]; in Get()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/contrib/dotzlib/DotZLib/
DCircularBuffer.cs24 private byte[] _buffer; field in DotZLib.CircularBuffer
30 _buffer = new byte[capacity]; in CircularBuffer()
44 _buffer[(_tail+i) % _capacity] = source[offset+i]; in Put()
55 _buffer[_tail++] = b; in Put()
65 destination[offset + i] = _buffer[(_head+i) % _capacity]; in Get()
77 int result = (int)_buffer[_head++ % _capacity]; in Get()
/third_party/flatbuffers/dart/lib/src/
Dreference.dart10 final ByteData _buffer;
18 Reference._(this._buffer, this._offset, this._parentWidth, int packedType, this._path) {
105 return utf8.decode(_buffer.buffer.asUint8List(_indirect, length));
113 return _buffer.buffer.asUint8List(_indirect, length);
129 …final reference = Reference._(_buffer, elementOffset, BitWidthUtil.fromByteWidth(_byteWidth), 0, "…
139 final packedType = _buffer.getUint8(_indirect + length * _byteWidth + index);
140 …return Reference._(_buffer, elementOffset, BitWidthUtil.fromByteWidth(_byteWidth), packedType, "$_…
198 while (_buffer.getInt8(indirect + size) != 0) {
206 while (_buffer.getInt8(indirect + size) != 0) {
280 return _buffer.getInt8(offset);
[all …]
/third_party/boost/boost/gil/extension/io/bmp/detail/
Dscanline_read.hpp122 _buffer.resize( _pitch ); in initialize()
145 _buffer.resize( _pitch ); in initialize()
176 _buffer.resize( _pitch ); in initialize()
194 _buffer.resize( _pitch ); in initialize()
310 , (typename src_view_t::x_iterator) &_buffer.front() in read_bit_row()
337 this->_io_dev.read( &_buffer.front(), _pitch ); in read_1_bit_row()
338 _mirror_bits( _buffer ); in read_1_bit_row()
346 this->_io_dev.read( &_buffer.front(), _pitch ); in read_4_bits_row()
347 _swap_half_bytes( _buffer ); in read_4_bits_row()
355 this->_io_dev.read( &_buffer.front(), _pitch ); in read_8_bits_row()
[all …]
/third_party/flatbuffers/tests/
DphpTest.php344 …$assert->Equal("\x63", $uut->_buffer[0]); // don't share buffer as php user might confuse referenc…
359 $assert->Equal(chr(0x01), $uut->_buffer[0]);
360 $assert->Equal(chr(0x00), $uut->_buffer[1]);
367 $assert->Equal(chr(0x00), $uut->_buffer[0]);
368 $assert->Equal(chr(0x80), $uut->_buffer[1]);
395 $assert->Equal(chr(0x0D), $uut->_buffer[0]);
396 $assert->Equal(chr(0x0C), $uut->_buffer[1]);
397 $assert->Equal(chr(0x0B), $uut->_buffer[2]);
398 $assert->Equal(chr(0x0A), $uut->_buffer[3]);
403 $assert->Equal(chr(0x00), $uut->_buffer[0]);
[all …]
/third_party/python/Lib/test/test_asyncio/
Dtest_streams.py131 self.assertEqual(b'', stream._buffer)
137 self.assertEqual(self.DATA, stream._buffer)
146 self.assertEqual(self.DATA, stream._buffer)
159 self.assertEqual(b'', stream._buffer)
170 self.assertEqual(b'line2', stream._buffer)
183 self.assertEqual(b'', stream._buffer)
199 self.assertEqual(b'', stream._buffer)
224 self.assertEqual(b'', stream._buffer)
241 self.assertEqual(b' chunk4', stream._buffer)
254 self.assertEqual(b'line2\n', stream._buffer)
[all …]
Dtest_selector_events.py422 tr._buffer.extend(b'data')
431 tr._buffer.extend(b'1')
437 self.assertEqual(tr._buffer, list_to_buffer())
489 tr._buffer.extend(b'1')
683 transport._buffer.extend(b'data')
686 self.assertEqual(list_to_buffer([b'data']), transport._buffer)
690 transport._buffer.extend(b'data1')
694 transport._buffer)
704 self.assertEqual(list_to_buffer([b'ta']), transport._buffer)
714 self.assertEqual(list_to_buffer([b'ta']), transport._buffer)
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cDrawIndirectTests.cpp970 glGenBuffers(1, &_buffer); in Run()
971 glBindBuffer(GL_DRAW_INDIRECT_BUFFER, _buffer); in Run()
973 long ret = BindingPointCheck<api>(_buffer); in Run()
980 glDeleteBuffers(1, &_buffer); in Cleanup()
985 GLuint _buffer; member
1064 glGenBuffers(1, &_buffer); in Run()
1065 glBindBuffer(GL_DRAW_INDIRECT_BUFFER, _buffer); in Run()
1066 glDeleteBuffers(1, &_buffer); in Run()
1071 GLuint _buffer; member
1260 glGenBuffers(1, &_buffer); in Run()
[all …]
/third_party/boost/boost/spirit/home/support/detail/lexer/
Dfile_input.hpp142 _buffer (_buffer_size, '!') in basic_file_input()
144 _start_buffer = &_buffer.front (); in basic_file_input()
145 _end_buffer = _start_buffer + _buffer.size (); in basic_file_input()
192 buffer _buffer; member in boost::lexer::basic_file_input
416 std::size_t old_size_ = _buffer.size (); in reload_buffer()
422 _buffer.resize (old_size_ + _buffer_increment, '!'); in reload_buffer()
423 _start_buffer = &_buffer.front (); in reload_buffer()
439 static_cast<std::streamsize> (_buffer.size () - len_ - 1)); in reload_buffer()
447 (_buffer.size ())); in reload_buffer()
/third_party/node/test/parallel/
Dtest-stream2-compatibility.js33 this._buffer = Buffer.alloc(100, 'x');
41 this.push(this._buffer);
42 this._buffer = Buffer.alloc(0);

1234