/external/openssh/ |
D | buffer.h | 26 typedef struct sshbuf Buffer; typedef 37 void buffer_append(Buffer *, const void *, u_int); 38 void *buffer_append_space(Buffer *, u_int); 39 int buffer_check_alloc(Buffer *, u_int); 40 void buffer_get(Buffer *, void *, u_int); 42 void buffer_consume(Buffer *, u_int); 43 void buffer_consume_end(Buffer *, u_int); 46 int buffer_get_ret(Buffer *, void *, u_int); 47 int buffer_consume_ret(Buffer *, u_int); 48 int buffer_consume_end_ret(Buffer *, u_int); [all …]
|
D | bufaux.c | 29 buffer_get_short_ret(u_short *v, Buffer *buffer) in buffer_get_short_ret() 41 buffer_get_short(Buffer *buffer) in buffer_get_short() 52 buffer_get_int_ret(u_int *v, Buffer *buffer) in buffer_get_int_ret() 64 buffer_get_int(Buffer *buffer) in buffer_get_int() 75 buffer_get_int64_ret(u_int64_t *v, Buffer *buffer) in buffer_get_int64_ret() 87 buffer_get_int64(Buffer *buffer) in buffer_get_int64() 98 buffer_put_short(Buffer *buffer, u_short value) in buffer_put_short() 107 buffer_put_int(Buffer *buffer, u_int value) in buffer_put_int() 116 buffer_put_int64(Buffer *buffer, u_int64_t value) in buffer_put_int64() 125 buffer_get_string_ret(Buffer *buffer, u_int *length_ptr) in buffer_get_string_ret() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 41 Buffer buffer = new Buffer(); in readAndWriteUtf8() 58 Buffer buffer = new Buffer(); in completeSegmentByteCountOnEmptyBuffer() 63 Buffer buffer = new Buffer(); in completeSegmentByteCountOnBufferWithFullSegments() 69 Buffer buffer = new Buffer(); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 75 Buffer buffer = new Buffer(); in toStringOnEmptyBuffer() 80 Buffer buffer = new Buffer(); in toStringOnSmallBufferIncludesContents() 86 Buffer buffer = new Buffer(); in toStringOnLargeBufferIncludesMd5() 92 Buffer buffer = new Buffer(); in toStringOnMultipleSegmentBuffer() 98 Buffer buffer = new Buffer(); in multipleSegmentBuffers() 116 Buffer buffer = new Buffer(); in fillAndDrainPool() [all …]
|
D | Utf8Test.java | 74 Buffer encoded = new Buffer().writeUtf8(a); in multipleSegmentString() 75 Buffer expected = new Buffer().write(a.getBytes(Util.UTF_8)); in multipleSegmentString() 80 Buffer buffer = new Buffer(); in stringSpansSegments() 91 Buffer buffer = new Buffer(); in readEmptyBufferThrowsEofException() 100 Buffer buffer = new Buffer(); in readLeadingContinuationByteReturnsReplacementCharacter() 102 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readLeadingContinuationByteReturnsReplacementCharacter() 107 Buffer buffer = new Buffer(); in readMissingContinuationBytesThrowsEofException() 119 Buffer buffer = new Buffer(); in readTooLargeCodepointReturnsReplacementCharacter() 121 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readTooLargeCodepointReturnsReplacementCharacter() 122 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readTooLargeCodepointReturnsReplacementCharacter() [all …]
|
D | DeflaterSinkTest.java | 32 Buffer data = new Buffer(); in deflateWithClose() 35 Buffer sink = new Buffer(); in deflateWithClose() 39 Buffer inflated = inflate(sink); in deflateWithClose() 45 Buffer data = new Buffer(); in deflateWithSyncFlush() 47 Buffer sink = new Buffer(); in deflateWithSyncFlush() 51 Buffer inflated = inflate(sink); in deflateWithSyncFlush() 57 Buffer data = new Buffer(); in deflateWellCompressed() 59 Buffer sink = new Buffer(); in deflateWellCompressed() 63 Buffer inflated = inflate(sink); in deflateWellCompressed() 69 Buffer data = new Buffer(); in deflatePoorlyCompressed() [all …]
|
D | SegmentSharingTest.java | 34 ByteString snapshot = new Buffer().snapshot(); in snapshotOfEmptyBuffer() 67 Buffer out = new Buffer(); in snapshotWriteToOutputStream() 77 Buffer buffer = concatenateBuffers(xs, ys, zs); in snapshotSegmentsAreNotRecycled() 95 Buffer buffer = concatenateBuffers(xs, ys, zs); in cloneSegmentsAreNotRecycled() 96 Buffer clone = buffer.clone(); in cloneSegmentsAreNotRecycled() 115 Buffer bufferA = concatenateBuffers(xs, ys, zs); in clonesAreEquivalent() 116 Buffer bufferB = bufferA.clone(); in clonesAreEquivalent() 123 Buffer bufferA = new Buffer(); in mutateAfterClone() 125 Buffer bufferB = bufferA.clone(); in mutateAfterClone() 133 Buffer bufferA = new Buffer().writeUtf8(ys).writeUtf8(us); in concatenateSegmentsCanCombine() [all …]
|
D | InflaterSourceTest.java | 32 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflate() 34 Buffer inflated = inflate(deflated); in inflate() 39 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflateTruncated() 49 Buffer deflated = decodeBase64("eJztwTEBAAAAwqCs61/CEL5AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" in inflateWellCompressed() 67 Buffer inflated = inflate(deflated); in inflateWellCompressed() 73 Buffer deflated = deflate(original); in inflatePoorlyCompressed() 74 Buffer inflated = inflate(deflated); in inflatePoorlyCompressed() 80 Buffer inflated = new Buffer().writeUtf8(repeat('a', i)); in inflateIntoNonemptySink() 81 Buffer deflated = decodeBase64( in inflateIntoNonemptySink() 91 private Buffer decodeBase64(String s) { in decodeBase64() [all …]
|
D | GzipSourceTest.java | 31 Buffer gzipped = new Buffer(); in gunzip() 43 Buffer gzipped = new Buffer(); in gunzip_withHCRC() 52 Buffer gzipped = new Buffer(); in gunzip_withExtra() 62 Buffer gzipped = new Buffer(); in gunzip_withName() 72 Buffer gzipped = new Buffer(); in gunzip_withComment() 86 Buffer gzipped = new Buffer(); in gunzip_withAll() 99 private void assertGzipped(Buffer gzipped) throws IOException { in assertGzipped() 100 Buffer gunzipped = gunzip(gzipped); in assertGzipped() 109 Buffer gzipped = new Buffer(); in gunzipWhenHeaderCRCIncorrect() 124 Buffer gzipped = new Buffer(); in gunzipWhenCRCIncorrect() [all …]
|
D | RealBufferedSourceTest.java | 34 Buffer source = new Buffer(); in inputStreamTracksSegments() 70 RealBufferedSource source = new RealBufferedSource(new Buffer()); in inputStreamCloses() 82 Buffer source = new Buffer(); in requireTracksBufferFirst() 94 Buffer source = new Buffer(); in requireIncludesBufferBytes() 105 Buffer source = new Buffer(); in requireInsufficientData() 118 Buffer source = new Buffer(); in requireReadsOneSegmentAtATime() 130 Buffer source = new Buffer(); in skipReadsOneSegmentAtATime() 140 Buffer source = new Buffer(); in skipTracksBufferFirst() 152 Buffer source = new Buffer(); in operationsAfterClose() 201 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in readAllReadsOneSegmentAtATime() [all …]
|
D | RealBufferedSinkTest.java | 32 RealBufferedSink sink = new RealBufferedSink(new Buffer()); in inputStreamCloses() 44 Buffer sink = new Buffer(); in bufferedSinkEmitsTailWhenItIsComplete() 54 Buffer sink = new Buffer(); in bufferedSinkEmitMultipleSegments() 62 Buffer sink = new Buffer(); in bufferedSinkFlush() 72 Buffer sink = new Buffer(); in bytesEmittedToSinkWithFlush() 80 Buffer sink = new Buffer(); in bytesNotEmittedToSinkWithoutFlush() 87 Buffer sink = new Buffer(); in bytesEmittedToSinkWithEmit() 95 Buffer sink = new Buffer(); in completeSegmentsEmitted() 102 Buffer sink = new Buffer(); in incompleteSegmentsNotEmitted() 209 assertEquals(3, bufferedSink.writeAll(new Buffer().writeUtf8("def"))); in writeAll() [all …]
|
D | GzipSinkTest.java | 27 Buffer data = new Buffer(); in gzipGunzip() 30 Buffer sink = new Buffer(); in gzipGunzip() 34 Buffer inflated = gunzip(sink); in gzipGunzip() 43 gzipSink.write(new Buffer().writeUtf8(repeat('a', Segment.SIZE)), Segment.SIZE); in closeWithExceptionWhenWritingAndClosing() 53 private Buffer gunzip(Buffer gzipped) throws IOException { in gunzip() 54 Buffer result = new Buffer(); in gunzip()
|
/external/libnfc-nxp/src/ |
D | phFriNfc_NdefRecord.c | 87 NFCSTATUS phFriNfc_NdefRecord_GetRecords( uint8_t *Buffer, in phFriNfc_NdefRecord_GetRecords() argument 105 if (Buffer == NULL || BufferLength == 0 || NumberOfRawRecords == NULL) in phFriNfc_NdefRecord_GetRecords() 135 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) != in phFriNfc_NdefRecord_GetRecords() 148 if ((*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) == in phFriNfc_NdefRecord_GetRecords() 160 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords() 161 (*Buffer & PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) == PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) in phFriNfc_NdefRecord_GetRecords() 171 if ( (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords() 172 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_UNKNOWN && in phFriNfc_NdefRecord_GetRecords() 173 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_EMPTY && in phFriNfc_NdefRecord_GetRecords() 174 *(Buffer + 1) == 0) in phFriNfc_NdefRecord_GetRecords() [all …]
|
/external/llvm/unittests/Support/ |
D | LineIteratorTest.cpp | 20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n" in TEST() local 24 line_iterator I = line_iterator(*Buffer), E; in TEST() 44 std::unique_ptr<MemoryBuffer> Buffer( in TEST() local 53 line_iterator I = line_iterator(*Buffer, true, '#'), E; in TEST() 73 std::unique_ptr<MemoryBuffer> Buffer( in TEST() local 83 line_iterator I = line_iterator(*Buffer, false, '#'), E; in TEST() 110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n" in TEST() local 116 line_iterator I = line_iterator(*Buffer), E; in TEST() 133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n" in TEST() local 138 line_iterator I = line_iterator(*Buffer, false), E; in TEST() [all …]
|
D | FileOutputBufferTest.cpp | 42 std::unique_ptr<FileOutputBuffer> Buffer; in TEST() local 43 ASSERT_NO_ERROR(FileOutputBuffer::create(File1, 8192, Buffer)); in TEST() 45 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 47 memcpy(Buffer->getBufferEnd() - 20, "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 49 ASSERT_NO_ERROR(Buffer->commit()); in TEST() 77 std::unique_ptr<FileOutputBuffer> Buffer; in TEST() local 78 ASSERT_NO_ERROR(FileOutputBuffer::create(File3, 8192000, Buffer)); in TEST() 80 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 82 memcpy(Buffer->getBufferEnd() - 20, "AABBCCDDEEFFGGHHIIJJ", 20); in TEST() 83 ASSERT_NO_ERROR(Buffer->commit()); in TEST() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
D | HttpContent.java | 24 import org.eclipse.jetty.io.Buffer; 37 Buffer getContentType(); in getContentType() 38 Buffer getLastModified(); in getLastModified() 39 Buffer getIndirectBuffer(); in getIndirectBuffer() 40 Buffer getDirectBuffer(); in getDirectBuffer() 41 Buffer getETag(); in getETag() 55 final Buffer _mimeType; 57 final Buffer _etag; 60 public ResourceAsHttpContent(final Resource resource, final Buffer mimeType) in ResourceAsHttpContent() 66 public ResourceAsHttpContent(final Resource resource, final Buffer mimeType, int maxBuffer) in ResourceAsHttpContent() [all …]
|
/external/aac/libFDK/src/ |
D | FDK_bitbuffer.cpp | 120 FDKmemclear((*hBitBuf)->Buffer, bufSize*sizeof(UCHAR)); in FDK_CreateBitBuffer() 134 hBitBuf->Buffer = pBuffer ; in FDK_InitBitBuffer() 169 UINT tx = (hBitBuf->Buffer [ byteOffset & byteMask] << 24) | in FDK_get() 170 (hBitBuf->Buffer [(byteOffset+1) & byteMask] << 16) | in FDK_get() 171 (hBitBuf->Buffer [(byteOffset+2) & byteMask] << 8) | in FDK_get() 172 hBitBuf->Buffer [(byteOffset+3) & byteMask]; in FDK_get() 177 tx |= hBitBuf->Buffer [(byteOffset+4) & byteMask] >> (8-bitOffset); in FDK_get() 193 UINT cache = (hBitBuf->Buffer[(byteOffset-3)] << 24) | in FDK_get32() 194 (hBitBuf->Buffer[(byteOffset-2)] << 16) | in FDK_get32() 195 (hBitBuf->Buffer[(byteOffset-1)] << 8) | in FDK_get32() [all …]
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 137 size_t Match(StringRef Buffer, size_t &MatchLen, 142 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 157 unsigned ComputeMatchDistance(StringRef Buffer, 378 size_t Pattern::Match(StringRef Buffer, size_t &MatchLen, in Match() argument 383 return Buffer.size(); in Match() 389 return Buffer.find(FixedStr); in Match() 431 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match() 447 return FullMatch.data()-Buffer.data(); in Match() 450 unsigned Pattern::ComputeMatchDistance(StringRef Buffer, in ComputeMatchDistance() argument 463 StringRef BufferPrefix = Buffer.substr(0, ExampleString.size()); in ComputeMatchDistance() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/io/ |
D | Buffer.java | 43 public interface Buffer extends Cloneable interface 68 Buffer buffer(); in buffer() 74 Buffer asNonVolatileBuffer(); in asNonVolatileBuffer() 80 Buffer asReadOnlyBuffer(); in asReadOnlyBuffer() 86 Buffer asImmutableBuffer(); in asImmutableBuffer() 92 Buffer asMutableBuffer(); in asMutableBuffer() 140 Buffer get(int length); in get() 157 boolean equalsIgnoreCase(Buffer buffer); in equalsIgnoreCase() 225 Buffer peek(int index, int length); in peek() 244 int poke(int index, Buffer src); in poke() [all …]
|
D | PooledBuffers.java | 27 private final Queue<Buffer> _headers; 28 private final Queue<Buffer> _buffers; 29 private final Queue<Buffer> _others; 39 _headers=new ConcurrentLinkedQueue<Buffer>(); in PooledBuffers() 40 _buffers=new ConcurrentLinkedQueue<Buffer>(); in PooledBuffers() 41 _others=new ConcurrentLinkedQueue<Buffer>(); in PooledBuffers() 48 public Buffer getHeader() in getHeader() 50 Buffer buffer = _headers.poll(); in getHeader() 59 public Buffer getBuffer() in getBuffer() 61 Buffer buffer = _buffers.poll(); in getBuffer() [all …]
|
D | ThreadLocalBuffers.java | 47 public Buffer getBuffer() in getBuffer() 52 Buffer b=buffers._buffer; in getBuffer() 59 Buffer b=buffers._other; in getBuffer() 68 public Buffer getHeader() in getHeader() 73 Buffer b=buffers._header; in getHeader() 80 Buffer b=buffers._other; in getHeader() 89 public Buffer getBuffer(int size) in getBuffer() 94 Buffer b=buffers._other; in getBuffer() 103 public void returnBuffer(Buffer buffer) in returnBuffer() 131 Buffer _buffer; [all …]
|
D | View.java | 30 Buffer _buffer; 39 public View(Buffer buffer, int mark, int get, int put,int access) in View() 49 public View(Buffer buffer) in View() 67 public void update(Buffer buffer) in update() 101 public Buffer buffer() in buffer() 143 return this==obj ||((obj instanceof Buffer)&& obj.equals(this)) || super.equals(obj); in equals() 184 public Buffer peek(int index, int length) in peek() 194 public int poke(int index, Buffer src) in poke() 228 public static class CaseInsensitive extends View implements Buffer.CaseInsensitve 235 public CaseInsensitive(Buffer buffer, int mark, int get, int put, int access) in CaseInsensitive() [all …]
|
/external/clang/lib/AST/ |
D | NestedNameSpecifier.cpp | 436 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument 445 memcpy(NewBuffer, Buffer, BufferSize); in Append() 448 free(Buffer); in Append() 449 Buffer = NewBuffer; in Append() 453 memcpy(Buffer + BufferSize, Start, End - Start); in Append() 458 void SaveSourceLocation(SourceLocation Loc, char *&Buffer, in SaveSourceLocation() argument 463 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation() 467 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument 471 Buffer, BufferSize, BufferCapacity); in SavePointer() 477 : Representation(Other.Representation), Buffer(nullptr), in NestedNameSpecifierLocBuilder() [all …]
|
/external/llvm/lib/Support/ |
D | LineIterator.cpp | 35 line_iterator::line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks, in line_iterator() argument 37 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator() 39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator() 43 if (Buffer.getBufferSize()) { in line_iterator() 44 assert(Buffer.getBufferEnd()[0] == '\0'); in line_iterator() 46 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator() 52 assert(Buffer && "Cannot advance past the end!"); in advance() 55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance() 82 Buffer = nullptr; in advance()
|
/external/zlib/src/contrib/ada/ |
D | mtest.adb | 36 Buffer : Stream_Element_Array (1 .. 100_000); variable 66 if Buffer (Compare_First .. Next_First - 1) /= Item then 86 Buff_Diff : Stream_Element_Offset := Buffer'Last - Buffer_First; 94 Item := Buffer (Buffer_First .. Next_First - 1); 99 Item (Item'First .. Last) := Buffer (Buffer_First .. Buffer'Last); 100 Buffer_First := Buffer'Last + 1; 111 Buffer := (others => 20); 114 for J in Buffer'Range loop 115 Buffer (J) := Random_Elements.Random (Gen); 120 Buffer_First := Buffer'First; [all …]
|
/external/llvm/lib/IRReader/ |
D | IRReader.cpp | 33 getLazyIRModule(std::unique_ptr<MemoryBuffer> Buffer, SMDiagnostic &Err, in getLazyIRModule() argument 35 if (isBitcode((const unsigned char *)Buffer->getBufferStart(), in getLazyIRModule() 36 (const unsigned char *)Buffer->getBufferEnd())) { in getLazyIRModule() 38 getLazyBitcodeModule(std::move(Buffer), Context); in getLazyIRModule() 40 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error, in getLazyIRModule() 47 return parseAssembly(Buffer->getMemBufferRef(), Err, Context); in getLazyIRModule() 64 std::unique_ptr<Module> llvm::parseIR(MemoryBufferRef Buffer, SMDiagnostic &Err, in parseIR() argument 68 if (isBitcode((const unsigned char *)Buffer.getBufferStart(), in parseIR() 69 (const unsigned char *)Buffer.getBufferEnd())) { in parseIR() 70 ErrorOr<Module *> ModuleOrErr = parseBitcodeFile(Buffer, Context); in parseIR() [all …]
|