Home
last modified time | relevance | path

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

1234

/external/flatbuffers/net/FlatBuffers/
DByteBuffer.cs82 private byte[] _buffer; field in FlatBuffers.ByteArrayAllocator
86 _buffer = buffer; in ByteArrayAllocator()
100 System.Buffer.BlockCopy(_buffer, 0, newBuffer, newSize - Length, Length); in GrowFront()
101 _buffer = newBuffer; in GrowFront()
106 public override Span<byte> Span => _buffer;
107 public override ReadOnlySpan<byte> ReadOnlySpan => _buffer;
108 public override Memory<byte> Memory => _buffer;
109 public override ReadOnlyMemory<byte> ReadOnlyMemory => _buffer;
114 Length = _buffer.Length; in InitBuffer()
116 Buffer = _buffer; in InitBuffer()
[all …]
/external/python/cryptography/src/cryptography/hazmat/primitives/
Dpadding.py112 self._buffer = b""
115 self._buffer, result = _byte_padding_update(
116 self._buffer, data, self.block_size)
124 self._buffer, self.block_size, self._padding)
125 self._buffer = None
134 self._buffer = b""
137 self._buffer, result = _byte_unpadding_update(
138 self._buffer, data, self.block_size)
143 self._buffer, self.block_size,
145 self._buffer = None
[all …]
/external/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 …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/io/
DUTF32Reader.java25 protected byte[] _buffer; field in UTF32Reader
60 _buffer = buf; in UTF32Reader()
105 if (_buffer == null) { return -1; } in read()
144 hi = (_buffer[ptr] << 8) | (_buffer[ptr+1] & 0xFF); in read()
145 lo = ((_buffer[ptr+2] & 0xFF) << 8) | (_buffer[ptr+3] & 0xFF); in read()
147 lo = (_buffer[ptr] & 0xFF) | ((_buffer[ptr+1] & 0xFF) << 8); in read()
148 hi = (_buffer[ptr+2] & 0xFF)| (_buffer[ptr+3] << 8); in read()
210 System.arraycopy(_buffer, _ptr, _buffer, 0, available); in loadMore()
219 int count = (_in == null) ? -1 : _in.read(_buffer); in loadMore()
238 int count = (_in == null) ? -1 : _in.read(_buffer, _length, _buffer.length - _length); in loadMore()
[all …]
DSegmentedStringWriter.java18 final private TextBuffer _buffer; field in SegmentedStringWriter
22 _buffer = new TextBuffer(br); in SegmentedStringWriter()
40 _buffer.append(str, 0, str.length()); in append()
47 _buffer.append(str, 0, str.length()); in append()
55 public void write(char[] cbuf) { _buffer.append(cbuf, 0, cbuf.length); } in write()
58 public void write(char[] cbuf, int off, int len) { _buffer.append(cbuf, off, len); } in write()
61 public void write(int c) { _buffer.append((char) c); } in write()
64 public void write(String str) { _buffer.append(str, 0, str.length()); } in write()
67 public void write(String str, int off, int len) { _buffer.append(str, off, len); } in write()
83 String result = _buffer.contentsAsString(); in getAndClear()
[all …]
/external/walt/ios/WALT/
DWALTLogger.m20 NSMutableString *_buffer;
34 _buffer = [[NSMutableString alloc] init];
40 @synchronized (_buffer) {
41 [_buffer appendString:string];
49 [_buffer appendString:formatted];
54 @synchronized (_buffer) {
55 [_buffer setString:[NSString string]];
60 @synchronized (_buffer) {
61 return [_buffer writeToURL:url
69 @synchronized (_buffer) {
[all …]
/external/lzma/Java/SevenZip/Compression/LZ/
DOutWindow.java9 byte[] _buffer; field in OutWindow
17 if (_buffer == null || _windowSize != windowSize) in Create()
18 _buffer = new byte[windowSize]; in Create()
50 _stream.write(_buffer, _streamPos, size); in Flush()
65 _buffer[_pos++] = _buffer[pos++]; in CopyBlock()
73 _buffer[_pos++] = b; in PutByte()
83 return _buffer[pos]; in GetByte()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/format/
DInputAccessor.java46 protected final byte[] _buffer; field in InputAccessor.Std
67 _buffer = buffer; in Std()
90 _buffer = inputDocument; in Std()
105 int amount = _buffer.length - _ptr; in hasMoreBytes()
109 int count = _in.read(_buffer, _ptr, amount); in hasMoreBytes()
123 …ailed auto-detect: could not read more than "+_ptr+" bytes (max buffer size: "+_buffer.length+")"); in nextByte()
126 return _buffer[_ptr++]; in nextByte()
142 … return new DataFormatMatcher(_in, _buffer, _bufferedStart, (_bufferedEnd - _bufferedStart), in createMatcher()
/external/lzma/CS/7zip/Compress/LZ/
DLzOutWindow.cs7 byte[] _buffer = null; field in SevenZip.Compression.LZ.OutWindow
20 _buffer = new byte[windowSize]; in Create()
51 int numReadBytes = stream.Read(_buffer, (int)_pos, (int)curSize); in Train()
74 _stream.Write(_buffer, (int)_streamPos, (int)size); in Flush()
89 _buffer[_pos++] = _buffer[pos++]; in CopyBlock()
97 _buffer[_pos++] = b; in PutByte()
107 return _buffer[pos]; in GetByte()
/external/python/cpython3/Lib/asyncio/
Dstreams.py406 self._buffer = bytearray()
418 if self._buffer:
459 if self._paused and len(self._buffer) <= self._limit:
469 return self._eof and not self._buffer
477 self._buffer.extend(data)
482 len(self._buffer) > 2 * self._limit):
544 if self._buffer.startswith(sep, e.consumed):
545 del self._buffer[:e.consumed + seplen]
547 self._buffer.clear()
603 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)
357 assert self._buffer is None
360 elif not self._buffer: # WRITING -> BACKED UP
362 self._buffer = bytearray(data)
366 self._buffer.extend(data)
[all …]
/external/python/cpython3/Lib/
Dbz2.py97 self._buffer = io.BufferedReader(raw)
112 self._buffer.close()
124 self._buffer = None
138 return self.readable() and self._buffer.seekable()
161 return self._buffer.peek(n)
171 return self._buffer.read(size)
184 return self._buffer.read1(size)
193 return self._buffer.readinto(b)
208 return self._buffer.readline(size)
223 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)
253 return self._buffer.seek(offset, whence)
259 return self._buffer.tell()
Dgzip.py80 self._buffer = prepend
91 return self._buffer[read:self._read]
95 return self._buffer[read:] + \
100 self._buffer = prepend
104 self._length = len(self._buffer)
109 self._buffer = None
187 self._buffer = io.BufferedReader(raw)
225 return self._buffer.raw._last_mtime
300 return self._buffer.read(size)
313 return self._buffer.read1(size)
[all …]
/external/rust/crates/libz-sys/src/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()
/external/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 …]
/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/
Dexpect.py17 pos = spawn._buffer.tell()
18 spawn._buffer.write(data)
24 spawn._buffer.seek(max(0, pos - self.searchwindowsize))
25 window = spawn._buffer.read(self.searchwindowsize + len(data))
31 spawn._buffer = spawn.buffer_type()
32 spawn._buffer.write(window[searcher.end:])
41 spawn._buffer = spawn.buffer_type()
42 spawn._buffer.write(window)
48 spawn._buffer = spawn.buffer_type()
100 spawn._buffer = spawn.buffer_type()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_streams.py144 self.assertEqual(b'', stream._buffer)
150 self.assertEqual(self.DATA, stream._buffer)
159 self.assertEqual(self.DATA, stream._buffer)
172 self.assertEqual(b'', stream._buffer)
183 self.assertEqual(b'line2', stream._buffer)
196 self.assertEqual(b'', stream._buffer)
212 self.assertEqual(b'', stream._buffer)
237 self.assertEqual(b'', stream._buffer)
254 self.assertEqual(b' chunk4', stream._buffer)
267 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 …]
Dtest_proactor_events.py141 self.assertEqual(tr._buffer, None)
147 self.assertFalse(tr._buffer)
154 self.assertEqual(tr._buffer, b'data')
159 tr._buffer = bytearray(b'data')
170 tr._buffer = [b'da', b'ta']
182 self.assertEqual(tr._buffer, None)
234 tr._buffer = [b'data']
249 tr._buffer = [b'data']
258 self.assertEqual(None, tr._buffer)
283 tr._buffer = [b'data']
[all …]
/external/python/cpython2/Mac/Demo/sound/
Dmorse.py82 self._buffer = []
95 self._buffer.append(frames)
103 print 'flush: %d blocks, %d bytes' % (len(self._buffer), self._filled)
104 if self._buffer:
106 self._base.writeframes(string.joinfields(self._buffer, ''))
107 self._buffer = []
/external/webrtc/sdk/objc/base/
DRTCVideoFrame.mm21 @synthesize buffer = _buffer;
25 return _buffer.width;
29 return _buffer.height;
41 return [[RTC_OBJC_TYPE(RTCVideoFrame) alloc] initWithBuffer:[_buffer toI420]
70 _buffer = buffer;
/external/deqp/external/openglcts/modules/gles31/
Des31cDrawIndirectTests.cpp976 glGenBuffers(1, &_buffer); in Run()
977 glBindBuffer(GL_DRAW_INDIRECT_BUFFER, _buffer); in Run()
979 long ret = BindingPointCheck<api>(_buffer); in Run()
986 glDeleteBuffers(1, &_buffer); in Cleanup()
991 GLuint _buffer; member
1070 glGenBuffers(1, &_buffer); in Run()
1071 glBindBuffer(GL_DRAW_INDIRECT_BUFFER, _buffer); in Run()
1072 glDeleteBuffers(1, &_buffer); in Run()
1077 GLuint _buffer; member
1266 glGenBuffers(1, &_buffer); in Run()
[all …]
/external/python/cpython2/Lib/test/
Dtest_httplib.py106 conn._buffer = HeaderCountingBuffer()
113 self.assertEqual(conn._buffer.count[header.lower()], 1)
134 conn._buffer = ContentLengthChecker()
137 conn._buffer.content_length, '0',
150 conn._buffer = ContentLengthChecker()
153 conn._buffer.content_length, None,
163 conn._buffer = ContentLengthChecker()
166 conn._buffer.content_length, '0',
174 conn._buffer = ContentLengthChecker()
177 conn._buffer.content_length, '1',
[all …]
/external/python/cpython2/Lib/
Duuid.py508 _buffer = ctypes.create_string_buffer(16)
509 _uuid_generate_time(_buffer)
510 return UUID(bytes=_buffer.raw).node
514 _buffer = ctypes.create_string_buffer(16)
515 if _UuidCreate(_buffer) == 0:
516 return UUID(bytes=_buffer.raw).node
570 _buffer = ctypes.create_string_buffer(16)
571 _uuid_generate_time(_buffer)
572 return UUID(bytes=_buffer.raw)

1234