Home
last modified time | relevance | path

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

12

/external/jetty/src/java/org/eclipse/jetty/io/nio/
DDirectNIOBuffer.java47 protected final ByteBuffer _buf; field in DirectNIOBuffer
56 _buf = ByteBuffer.allocateDirect(size); in DirectNIOBuffer()
57 _buf.position(0); in DirectNIOBuffer()
58 _buf.limit(_buf.capacity()); in DirectNIOBuffer()
66 _buf = buffer; in DirectNIOBuffer()
83 _buf = fc.map(FileChannel.MapMode.READ_ONLY, 0, file.length()); in DirectNIOBuffer()
110 return _buf.capacity(); in capacity()
116 return _buf.get(position); in peek()
133 _buf.position(index); in peek()
134 _buf.get(b,offset,l); in peek()
[all …]
DIndirectNIOBuffer.java27 protected final ByteBuffer _buf; field in IndirectNIOBuffer
33 _buf = ByteBuffer.wrap(_bytes); in IndirectNIOBuffer()
34 _buf.position(0); in IndirectNIOBuffer()
35 _buf.limit(_buf.capacity()); in IndirectNIOBuffer()
44 _buf = buffer; in IndirectNIOBuffer()
54 return _buf; in getByteBuffer()
/external/jetty/src/java/org/eclipse/jetty/util/
DByteArrayISO8859Writer.java37 private byte[] _buf; field in ByteArrayISO8859Writer
48 _buf=new byte[2048]; in ByteArrayISO8859Writer()
57 _buf=new byte[capacity]; in ByteArrayISO8859Writer()
63 _buf=buf; in ByteArrayISO8859Writer()
82 return _buf.length; in capacity()
88 return _buf.length-_size; in spareCapacity()
100 return _buf; in getBuf()
107 out.write(_buf,0,_size); in writeTo()
116 _buf[_size++]=(byte)c; in write()
134 _buf[_size++]=(byte)c; in write()
[all …]
/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()
100 if ((size_t)(_bufLim - _buf) >= size) in ReadBytes()
102 const Byte *src = _buf; in ReadBytes()
[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()
64 memcpy(_buf + _bufPos, data, cur); in Write()
84 RINOK(WriteStream(stream, _buf, _bufPos)); in WriteToStream()
85 crc = CrcUpdate(crc, _buf, _bufPos); in WriteToStream()
96 if (!inFile.ReadPart(_buf, kTempBufSize, processed)) in WriteToStream()
100 RINOK(WriteStream(stream, _buf, processed)); in WriteToStream()
101 crc = CrcUpdate(crc, _buf, processed); in WriteToStream()
[all …]
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()
65 if (_buf >= _bufLim) in ReadByte()
67 b = *_buf++; in ReadByte()
73 if (_buf >= _bufLim) in ReadByte()
75 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()
DStreamBinder.cpp61 _buf = NULL; in CreateStreams()
90 memcpy(data, _buf, size); in Read()
91 _buf = ((const Byte *)_buf) + size; in Read()
113 _buf = data; in Write()
DInOutTempBuffer.h15 Byte *_buf; variable
38 CInOutTempBuffer *_buf; variable
40 void Init(CInOutTempBuffer *buffer) { _buf = buffer; } in Init()
DOutBuffer.h20 Byte *_buf;
36 COutBuffer(): _buf(0), _pos(0), _stream(0), _buf2(0) {} in COutBuffer()
50 _buf[_pos++] = b; in WriteByte()
DStreamObjects.h49 Byte *_buf; variable
51 CByteDynBuffer(): _capacity(0), _buf(0) {}; in CByteDynBuffer()
56 operator Byte*() const { return _buf; };
57 operator const Byte*() const { return _buf; };
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DBEROctetStringGenerator.java42 private byte[] _buf; field in BEROctetStringGenerator.BufferedBEROctetStream
49 _buf = buf; in BufferedBEROctetStream()
58 _buf[_off++] = (byte)b; in write()
60 if (_off == _buf.length) in write()
62 DEROctetString.encode(_derOut, _buf); in write()
71 int numToCopy = Math.min(len, _buf.length - _off); in write()
72 System.arraycopy(b, off, _buf, _off, numToCopy); in write()
75 if (_off < _buf.length) in write()
80 DEROctetString.encode(_derOut, _buf); in write()
94 System.arraycopy(_buf, 0, bytes, 0, _off); in close()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_ondemand.c92 pb_ondemand_buffer_destroy(struct pb_buffer *_buf) in pb_ondemand_buffer_destroy() argument
94 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); in pb_ondemand_buffer_destroy()
105 pb_ondemand_buffer_map(struct pb_buffer *_buf, in pb_ondemand_buffer_map() argument
108 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); in pb_ondemand_buffer_map()
123 pb_ondemand_buffer_unmap(struct pb_buffer *_buf) in pb_ondemand_buffer_unmap() argument
125 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); in pb_ondemand_buffer_unmap()
173 pb_ondemand_buffer_validate(struct pb_buffer *_buf, in pb_ondemand_buffer_validate() argument
177 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); in pb_ondemand_buffer_validate()
193 pb_ondemand_buffer_fence(struct pb_buffer *_buf, in pb_ondemand_buffer_fence() argument
196 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); in pb_ondemand_buffer_fence()
[all …]
Dpb_bufmgr_cache.c150 pb_cache_buffer_destroy(struct pb_buffer *_buf) in pb_cache_buffer_destroy() argument
152 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_destroy()
169 pb_cache_buffer_map(struct pb_buffer *_buf, in pb_cache_buffer_map() argument
172 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_map()
178 pb_cache_buffer_unmap(struct pb_buffer *_buf) in pb_cache_buffer_unmap() argument
180 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_unmap()
186 pb_cache_buffer_validate(struct pb_buffer *_buf, in pb_cache_buffer_validate() argument
190 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); in pb_cache_buffer_validate()
196 pb_cache_buffer_fence(struct pb_buffer *_buf, in pb_cache_buffer_fence() argument
199 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()
274 pb_debug_buffer_unmap(struct pb_buffer *_buf) in pb_debug_buffer_unmap() argument
276 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_unmap()
291 pb_debug_buffer_get_base_buffer(struct pb_buffer *_buf, in pb_debug_buffer_get_base_buffer() argument
295 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_get_base_buffer()
302 pb_debug_buffer_validate(struct pb_buffer *_buf, in pb_debug_buffer_validate() argument
306 struct pb_debug_buffer *buf = pb_debug_buffer(_buf); in pb_debug_buffer_validate()
[all …]
Dpb_bufmgr_slab.c195 pb_slab_buffer_destroy(struct pb_buffer *_buf) in pb_slab_buffer_destroy() argument
197 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_destroy()
229 pb_slab_buffer_map(struct pb_buffer *_buf, in pb_slab_buffer_map() argument
233 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_map()
243 pb_slab_buffer_unmap(struct pb_buffer *_buf) in pb_slab_buffer_unmap() argument
245 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_unmap()
254 pb_slab_buffer_validate(struct pb_buffer *_buf, in pb_slab_buffer_validate() argument
258 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_validate()
264 pb_slab_buffer_fence(struct pb_buffer *_buf, in pb_slab_buffer_fence() argument
267 struct pb_slab_buffer *buf = pb_slab_buffer(_buf); in pb_slab_buffer_fence()
[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/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_buffer.c98 vmw_gmr_buffer_destroy(struct pb_buffer *_buf) in vmw_gmr_buffer_destroy() argument
100 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); in vmw_gmr_buffer_destroy()
111 vmw_gmr_buffer_map(struct pb_buffer *_buf, in vmw_gmr_buffer_map() argument
115 struct vmw_gmr_buffer *buf = vmw_gmr_buffer(_buf); in vmw_gmr_buffer_map()
121 vmw_gmr_buffer_unmap(struct pb_buffer *_buf) in vmw_gmr_buffer_unmap() argument
124 (void)_buf; in vmw_gmr_buffer_unmap()
139 vmw_gmr_buffer_validate( struct pb_buffer *_buf, in vmw_gmr_buffer_validate() argument
149 vmw_gmr_buffer_fence( struct pb_buffer *_buf, in vmw_gmr_buffer_fence() argument
/external/lzma/CPP/7zip/Compress/
DBcj2Coder.cpp33 ::MidFree(_buf); in ~CEncoder()
56 if (_buf == 0) in CodeReal()
58 _buf = (Byte *)MidAlloc(kBufSize); in CodeReal()
59 if (_buf == 0) in CodeReal()
106 RINOK(inStream->Read(_buf + bufPos + processedSize, size, &processedSizeLoc)); in CodeReal()
118 Byte b = _buf[bufPos]; in CodeReal()
143 Byte b = _buf[bufPos]; in CodeReal()
151 Byte nextByte = _buf[bufPos + 4]; in CodeReal()
154 (UInt32(_buf[bufPos + 3]) << 16) | in CodeReal()
155 (UInt32(_buf[bufPos + 2]) << 8) | in CodeReal()
[all …]
/external/eigen/test/
Dunalignedassert.cpp71 size_t _buf = reinterpret_cast<size_t>(buf); in construct_at_boundary() local
72 _buf += (16 - (_buf % 16)); // make 16-byte aligned in construct_at_boundary()
73 _buf += boundary; // make exact boundary-aligned in construct_at_boundary()
74 T *x = ::new(reinterpret_cast<void*>(_buf)) T; in construct_at_boundary()
/external/libunwind/doc/
Dlibunwind-setjmp.tex16 \Type{int} \Func{setjmp}(\Type{jmp\_buf}~\Var{env});\\
17 \Type{void} \Func{longjmp}(\Type{jmp\_buf}~\Var{env}, \Type{int}~\Var{val});\\
18 \Type{int} \Func{\_setjmp}(\Type{jmp\_buf}~\Var{env});\\
19 \Type{void} \Func{\_longjmp}(\Type{jmp\_buf}~\Var{env}, \Type{int}~\Var{val});\\
20 \Type{int} \Func{sigsetjmp}(\Type{sigjmp\_buf}~\Var{env}, \Type{int}~\Var{savemask});\\
21 \Type{void} \Func{siglongjmp}(\Type{sigjmp\_buf}~\Var{env}, \Type{int}~\Var{val});\\
54 \item The contents of \Type{jmp\_buf} and \Type{sigjmp\_buf} as setup
60 \Type{sigjmp\_buf} with \Func{sigsetjmp}() and \Func{siglongjmp}().
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c132 static struct radeon_bo *get_radeon_bo(struct pb_buffer *_buf) in get_radeon_bo() argument
136 if (_buf->vtbl == &radeon_bo_vtbl) { in get_radeon_bo()
137 bo = radeon_bo(_buf); in get_radeon_bo()
141 pb_get_base_buffer(_buf, &base_buf, &offset); in get_radeon_bo()
150 static void radeon_bo_wait(struct pb_buffer *_buf, enum radeon_bo_usage usage) in radeon_bo_wait() argument
152 struct radeon_bo *bo = get_radeon_bo(_buf); in radeon_bo_wait()
174 static boolean radeon_bo_is_busy(struct pb_buffer *_buf, in radeon_bo_is_busy() argument
177 struct radeon_bo *bo = get_radeon_bo(_buf); in radeon_bo_is_busy()
364 static void radeon_bo_destroy(struct pb_buffer *_buf) in radeon_bo_destroy() argument
366 struct radeon_bo *bo = radeon_bo(_buf); in radeon_bo_destroy()
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/
DWriterOutputStream.java37 private final byte[] _buf=new byte[1]; field in WriterOutputStream
96 _buf[0]=(byte)b; in write()
97 write(_buf); in write()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c47 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize() argument
49 struct wpabuf *buf = *_buf; in wpabuf_resize()
55 *_buf = wpabuf_alloc(add_len); in wpabuf_resize()
56 return *_buf == NULL ? -1 : 0; in wpabuf_resize()
99 *_buf = buf; in wpabuf_resize()
/external/openssh/openbsd-compat/
Darc4random.c168 _rs_random_buf(void *_buf, size_t n) in _rs_random_buf() argument
170 u_char *buf = (u_char *)_buf; in _rs_random_buf()
254 arc4random_buf(void *_buf, size_t n) in arc4random_buf() argument
258 char *buf = (char *)_buf; in arc4random_buf()

12