Home
last modified time | relevance | path

Searched refs:_buf (Results 1 – 25 of 66) sorted by relevance

123

/external/lzma/CPP/7zip/Common/
DInBuffer.cpp10 _buf(0), in CInBufferBase()
42 _buf = _bufBase; in Init()
43 _bufLim = _buf; in Init()
59 _processedSize += (_buf - _bufBase); in ReadBlock()
60 _buf = _bufBase; in ReadBlock()
71 _bufLim = _buf + processed; in ReadBlock()
84 b = *_buf++; in ReadByte_FromNewBlock()
95 return *_buf++; in ReadByte_FromNewBlock()
103 const size_t rem = _bufLim - _buf; in ReadBytes()
108 memcpy(buf, _buf, size); in ReadBytes()
[all …]
DFilterCoder.cpp37 if (!_buf || _bufSize != size) in Alloc()
40 if (!_buf) in Alloc()
83 RINOK(ReadStream(inStream, _buf + pos, &processedSize)); in Code()
88 pos = Filter->Filter(_buf, endPos); in Code()
99 _buf[endPos] = 0; in Code()
102 if (pos != Filter->Filter(_buf, pos)) in Code()
117 RINOK(WriteStream(outStream, _buf, size)); in Code()
128 _buf[i++] = _buf[pos++]; in Code()
166 HRESULT res = _outStream->Write(_buf + _convPos, num, &processed); in Flush2()
180 _buf[i] = _buf[_convPos + i]; in Flush2()
[all …]
DInOutTempBuffer.cpp20 CInOutTempBuffer::CInOutTempBuffer(): _buf(NULL) { } in CInOutTempBuffer()
24 if (!_buf) in Create()
25 _buf = new Byte[kTempBufSize]; in Create()
30 delete []_buf; in ~CInOutTempBuffer()
68 memcpy(_buf + _bufPos, data, cur); in Write()
88 RINOK(WriteStream(stream, _buf, _bufPos)); in WriteToStream()
89 crc = CrcUpdate(crc, _buf, _bufPos); in WriteToStream()
101 if (!inFile.ReadPart(_buf, kTempBufSize, processed)) in WriteToStream()
105 RINOK(WriteStream(stream, _buf, processed)); in WriteToStream()
106 crc = CrcUpdate(crc, _buf, processed); in WriteToStream()
DInBuffer.h19 Byte *_buf;
41 UInt64 GetStreamSize() const { return _processedSize + (_buf - _bufBase); } in GetStreamSize()
42 UInt64 GetProcessedSize() const { return _processedSize + NumExtraBytes + (_buf - _bufBase); } in GetProcessedSize()
52 _buf = buf + pos; in SetBuf()
66 if (_buf >= _bufLim) in ReadByte()
68 b = *_buf++; in ReadByte()
75 if (_buf >= _bufLim) in ReadByte()
77 return *_buf++; in ReadByte()
DOutBuffer.cpp14 if (_buf != 0 && _bufSize == bufSize) in Create()
18 _buf = (Byte *)::MidAlloc(bufSize); in Create()
19 return (_buf != 0); in Create()
24 ::MidFree(_buf); in Free()
25 _buf = 0; in Free()
59 memcpy(_buf2, _buf + _streamPos, size); in FlushPart()
70 result = _stream->Write(_buf + _streamPos, size, &processedSize); in FlushPart()
DFilterCoder.h24 Byte *_buf; member
26 CAlignedMidBuffer(): _buf(NULL) {} in CAlignedMidBuffer()
27 ~CAlignedMidBuffer() { ::MidFree(_buf); } in ~CAlignedMidBuffer()
31 ::MidFree(_buf); in AllocAlignedMask()
32 _buf = (Byte *)::MidAlloc(size); in AllocAlignedMask()
38 Byte *_buf;
40 CAlignedMidBuffer(): _bufBase(NULL), _buf(NULL) {}
46 _buf = NULL;
52 _buf = (Byte *)(((ptrdiff_t)_bufBase + alignMask) & ~(ptrdiff_t)alignMask);
DStreamBinder.cpp59 _buf = NULL; in ReInit()
72 _buf = NULL; in CreateStreams()
102 memcpy(data, _buf, size); in Read()
103 _buf = ((const Byte *)_buf) + size; in Read()
128 _buf = data; in Write()
DOutBuffer.h20 Byte *_buf;
36 COutBuffer(): _buf(0), _pos(0), _stream(0), _buf2(0) {} in COutBuffer()
51 _buf[pos] = b; in WriteByte()
DStreamObjects.h66 Byte *_buf; variable
68 CByteDynBuffer(): _capacity(0), _buf(0) {}; in CByteDynBuffer()
73 operator Byte*() const { return _buf; }
74 operator const Byte*() const { return _buf; }
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DBEROctetStringGenerator.java74 private byte[] _buf; field in BEROctetStringGenerator.BufferedBEROctetStream
81 _buf = buf; in BufferedBEROctetStream()
90 _buf[_off++] = (byte)b; in write()
92 if (_off == _buf.length) in write()
94 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
103 int numToCopy = Math.min(len, _buf.length - _off); in write()
104 System.arraycopy(b, off, _buf, _off, numToCopy); in write()
107 if (_off < _buf.length) in write()
112 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
125 DEROctetString.encode(_derOut, true, _buf, 0, _off); in close()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DBEROctetStringGenerator.java74 private byte[] _buf; field in BEROctetStringGenerator.BufferedBEROctetStream
81 _buf = buf; in BufferedBEROctetStream()
90 _buf[_off++] = (byte)b; in write()
92 if (_off == _buf.length) in write()
94 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
103 int numToCopy = Math.min(len, _buf.length - _off); in write()
104 System.arraycopy(b, off, _buf, _off, numToCopy); in write()
107 if (_off < _buf.length) in write()
112 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
125 DEROctetString.encode(_derOut, true, _buf, 0, _off); in close()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DBEROctetStringGenerator.java72 private byte[] _buf; field in BEROctetStringGenerator.BufferedBEROctetStream
79 _buf = buf; in BufferedBEROctetStream()
88 _buf[_off++] = (byte)b; in write()
90 if (_off == _buf.length) in write()
92 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
101 int numToCopy = Math.min(len, _buf.length - _off); in write()
102 System.arraycopy(b, off, _buf, _off, numToCopy); in write()
105 if (_off < _buf.length) in write()
110 DEROctetString.encode(_derOut, true, _buf, 0, _buf.length); in write()
123 DEROctetString.encode(_derOut, true, _buf, 0, _off); in close()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_cache.c108 pb_cache_buffer_destroy(struct pb_buffer *_buf) in pb_cache_buffer_destroy() argument
110 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_destroy()
124 pb_cache_buffer_map(struct pb_buffer *_buf, in pb_cache_buffer_map() argument
127 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_map()
133 pb_cache_buffer_unmap(struct pb_buffer *_buf) in pb_cache_buffer_unmap() argument
135 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_unmap()
141 pb_cache_buffer_validate(struct pb_buffer *_buf, in pb_cache_buffer_validate() argument
145 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_validate()
151 pb_cache_buffer_fence(struct pb_buffer *_buf, in pb_cache_buffer_fence() argument
154 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_fence()
[all …]
Dpb_bufmgr_debug.c229 pb_debug_buffer_destroy(struct pb_buffer *_buf) in pb_debug_buffer_destroy() argument
231 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_destroy()
250 pb_debug_buffer_map(struct pb_buffer *_buf, in pb_debug_buffer_map() argument
253 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_map()
272 pb_debug_buffer_unmap(struct pb_buffer *_buf) in pb_debug_buffer_unmap() argument
274 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_unmap()
289 pb_debug_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_debug_buffer_get_base_buffer() argument
293 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_get_base_buffer()
300 pb_debug_buffer_validate(struct pb_buffer *_buf, in pb_debug_buffer_validate() argument
304 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_validate()
[all …]
Dpb_bufmgr_slab.c190 pb_slab_buffer_destroy(struct pb_buffer *_buf) in pb_slab_buffer_destroy() argument
192 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_destroy()
225 pb_slab_buffer_map(struct pb_buffer *_buf, in pb_slab_buffer_map() argument
229 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_map()
239 pb_slab_buffer_unmap(struct pb_buffer *_buf) in pb_slab_buffer_unmap() argument
241 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_unmap()
248 pb_slab_buffer_validate(struct pb_buffer *_buf, in pb_slab_buffer_validate() argument
252 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_validate()
258 pb_slab_buffer_fence(struct pb_buffer *_buf, in pb_slab_buffer_fence() argument
261 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_fence()
[all …]
/external/flatbuffers/dart/lib/
Dflat_buffers.dart116 ByteData _buf;
118 /// The maximum alignment that has been seen so far. If [_buf] has to be
124 /// most recently written byte is this many bytes from the end of [_buf].
128 /// end of [_buf], or `null` if a table is not currently being built.
160 _buf.setInt8(_buf.lengthInBytes - _tail, value ? 1 : 0);
171 _setInt32AtTail(_buf, _tail, value);
182 _setInt16AtTail(_buf, _tail, value);
193 _setInt8AtTail(_buf, _tail, value);
209 _setUint32AtTail(_buf, _tail, _tail - offset);
220 _setUint32AtTail(_buf, _tail, value);
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java114 StringBuffer _buf = new StringBuffer(); in toString() local
115 _buf.append(_indent); in toString()
116 _buf.append(validPolicy); in toString()
117 _buf.append(" {\n"); in toString()
121 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
124 _buf.append(_indent); in toString()
125 _buf.append("}\n"); in toString()
126 return _buf.toString(); in toString()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java118 StringBuffer _buf = new StringBuffer(); in toString() local
119 _buf.append(_indent); in toString()
120 _buf.append(validPolicy); in toString()
121 _buf.append(" {\n"); in toString()
125 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
128 _buf.append(_indent); in toString()
129 _buf.append("}\n"); in toString()
130 return _buf.toString(); in toString()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DPKIXPolicyNode.java118 StringBuffer _buf = new StringBuffer(); in toString() local
119 _buf.append(_indent); in toString()
120 _buf.append(validPolicy); in toString()
121 _buf.append(" {\n"); in toString()
125 _buf.append(((PKIXPolicyNode)children.get(i)).toString(_indent + " ")); in toString()
128 _buf.append(_indent); in toString()
129 _buf.append("}\n"); in toString()
130 return _buf.toString(); in toString()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c104 vmw_gmr_buffer_destroy(struct pb_buffer *_buf) in vmw_gmr_buffer_destroy() argument
106 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); in vmw_gmr_buffer_destroy()
121 vmw_gmr_buffer_map(struct pb_buffer *_buf, in vmw_gmr_buffer_map() argument
125 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); in vmw_gmr_buffer_map()
134 if ((_buf->usage & VMW_BUFFER_USAGE_SYNC) && in vmw_gmr_buffer_map()
150 vmw_gmr_buffer_unmap(struct pb_buffer *_buf) in vmw_gmr_buffer_unmap() argument
152 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); in vmw_gmr_buffer_unmap()
155 if ((_buf->usage & VMW_BUFFER_USAGE_SYNC) && in vmw_gmr_buffer_unmap()
181 vmw_gmr_buffer_validate( struct pb_buffer *_buf, in vmw_gmr_buffer_validate() argument
191 vmw_gmr_buffer_fence( struct pb_buffer *_buf, in vmw_gmr_buffer_fence() argument
/external/lzma/CPP/7zip/Compress/
DCopyCoder.cpp15 ::MidFree(_buf); in ~CCopyCoder()
28 if (!_buf) in Code()
30 _buf = (Byte *)::MidAlloc(kBufSize); in Code()
31 if (!_buf) in Code()
45 HRESULT readRes = inStream->Read(_buf, size, &size); in Code()
56 HRESULT res = outStream->Write(_buf + pos, curSize, &curSize); in Code()
/external/eigen/test/
Dunalignedassert.cpp97 size_t _buf = reinterpret_cast<internal::UIntPtr>(buf); in construct_at_boundary() local
98 _buf += (EIGEN_MAX_ALIGN_BYTES - (_buf % EIGEN_MAX_ALIGN_BYTES)); // make 16/32/...-byte aligned in construct_at_boundary()
99 _buf += boundary; // make exact boundary-aligned in construct_at_boundary()
100 T *x = ::new(reinterpret_cast<void*>(_buf)) T; in construct_at_boundary()
/external/toolchain-utils/cros_utils/
Dcommand_executer.py585 self._buf = ''
590 self._buf = self._buf + t
594 p = self._buf.find('\n')
597 line=self._buf[:p + 1], output=self._name, pobject=self._pobject)
598 if p < len(self._buf) - 1:
599 self._buf = self._buf[p + 1:]
600 p = self._buf.find('\n')
602 self._buf = ''
608 if self._buf != '':
610 line=self._buf, output=self._name, pobject=self._pobject)
[all …]
/external/python/httplib2/tests/
D__init__.py61 self._buf = b""
67 self._buf = sock
71 target = len(self._buf) + more
72 while untilend or (len(self._buf) < target):
85 self._buf += chunk
89 return self._buf[:size]
93 chunk, self._buf = self._buf[:size], self._buf[size:]
98 chunk, self._buf = self._buf, b""
103 i = self._buf.find(self._newline)
108 line, self._buf = self._buf[:inext], self._buf[inext:]
/external/scapy/scapy/
Dsupersocket.py156 self._buf = b""
162 if self._buf != b"":
164 pkt = self.basecls(self._buf)
173 self._buf += buf
175 x = len(self._buf)
176 pkt = self.basecls(self._buf)
184 self._buf = self._buf[x:]

123