/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 …]
|
/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 …]
|
/external/dng_sdk/source/ |
D | dng_memory.h | 96 void * Buffer () in Buffer() function 104 const void * Buffer () const in Buffer() function 114 return (char *) Buffer (); in Buffer_char() 122 return (const char *) Buffer (); in Buffer_char() 130 return (uint8 *) Buffer (); in Buffer_uint8() 138 return (const uint8 *) Buffer (); in Buffer_uint8() 146 return (uint16 *) Buffer (); in Buffer_uint16() 154 return (const uint16 *) Buffer (); in Buffer_uint16() 162 return (int16 *) Buffer (); in Buffer_int16() 170 return (const int16 *) Buffer (); in Buffer_int16() [all …]
|
D | dng_ref_counted_block.h | 112 void * Buffer () in Buffer() function 120 const void * Buffer () const in Buffer() function 130 return (char *) Buffer (); in Buffer_char() 138 return (const char *) Buffer (); in Buffer_char() 146 return (uint8 *) Buffer (); in Buffer_uint8() 154 return (const uint8 *) Buffer (); in Buffer_uint8() 162 return (uint16 *) Buffer (); in Buffer_uint16() 170 return (const uint16 *) Buffer (); in Buffer_uint16() 178 return (int16 *) Buffer (); in Buffer_int16() 186 return (const int16 *) Buffer (); in Buffer_int16() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | SHA1.cpp | 103 r0(A, B, C, D, E, 0, InternalState.Buffer.L); in hashBlock() 104 r0(E, A, B, C, D, 1, InternalState.Buffer.L); in hashBlock() 105 r0(D, E, A, B, C, 2, InternalState.Buffer.L); in hashBlock() 106 r0(C, D, E, A, B, 3, InternalState.Buffer.L); in hashBlock() 107 r0(B, C, D, E, A, 4, InternalState.Buffer.L); in hashBlock() 108 r0(A, B, C, D, E, 5, InternalState.Buffer.L); in hashBlock() 109 r0(E, A, B, C, D, 6, InternalState.Buffer.L); in hashBlock() 110 r0(D, E, A, B, C, 7, InternalState.Buffer.L); in hashBlock() 111 r0(C, D, E, A, B, 8, InternalState.Buffer.L); in hashBlock() 112 r0(B, C, D, E, A, 9, InternalState.Buffer.L); in hashBlock() [all …]
|
/external/puffin/src/ |
D | puffin_unittest.cc | 32 const Buffer kRawEmpty = {}; 33 const Buffer kRaw1 = {0x01}; 34 const Buffer kRaw2 = {0x01, 0x01}; 35 const Buffer kRaw5 = {0x01, 0x02, 0x03, 0x04, 0x05}; 117 void TestPuffDeflate(const Buffer& compressed, in TestPuffDeflate() 118 const Buffer& expected_puff, in TestPuffDeflate() 119 Buffer* out_puff) { in TestPuffDeflate() 131 void FailPuffDeflate(const Buffer& compressed, Buffer* out_puff) { in FailPuffDeflate() 141 void TestHuffDeflate(const Buffer& puffed, in TestHuffDeflate() 142 const Buffer& expected_huff, in TestHuffDeflate() [all …]
|
/external/libvpx/libvpx/test/ |
D | temporal_filter_test.cc | 24 using ::libvpx_test::Buffer; 35 void reference_filter(const Buffer<uint8_t> &a, const Buffer<uint8_t> &b, int w, in reference_filter() 37 Buffer<unsigned int> *accumulator, in reference_filter() 38 Buffer<uint16_t> *count) { in reference_filter() 39 Buffer<int> diff_sq = Buffer<int>(w, h, 0); in reference_filter() 127 Buffer<uint8_t> a = Buffer<uint8_t>(16, 16, 8); in TEST_P() 136 Buffer<uint8_t> b = Buffer<uint8_t>(width, height, 0); in TEST_P() 138 Buffer<unsigned int> accum_ref = Buffer<unsigned int>(width, height, 0); in TEST_P() 140 Buffer<unsigned int> accum_chk = Buffer<unsigned int>(width, height, 0); in TEST_P() 142 Buffer<uint16_t> count_ref = Buffer<uint16_t>(width, height, 0); in TEST_P() [all …]
|
/external/swiftshader/third_party/LLVM/utils/FileCheck/ |
D | FileCheck.cpp | 90 size_t Match(StringRef Buffer, size_t &MatchLen, 95 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 105 unsigned ComputeMatchDistance(StringRef Buffer, 282 size_t Pattern::Match(StringRef Buffer, size_t &MatchLen, in Match() argument 287 return Buffer.size(); in Match() 293 return Buffer.find(FixedStr); in Match() 329 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match() 344 return FullMatch.data()-Buffer.data(); in Match() 347 unsigned Pattern::ComputeMatchDistance(StringRef Buffer, in ComputeMatchDistance() argument 360 StringRef BufferPrefix = Buffer.substr(0, ExampleString.size()); in ComputeMatchDistance() [all …]
|
/external/libbrillo/brillo/ |
D | any_internal_impl_unittest.cc | 10 using brillo::internal_details::Buffer; 13 TEST(Buffer, Empty) { in TEST() argument 14 Buffer buffer; in TEST() 16 EXPECT_EQ(Buffer::kExternal, buffer.storage_); in TEST() 20 TEST(Buffer, Store_Int) { in TEST() argument 21 Buffer buffer; in TEST() 24 EXPECT_EQ(Buffer::kContained, buffer.storage_); in TEST() 28 TEST(Buffer, Store_Double) { in TEST() argument 29 Buffer buffer; in TEST() 32 EXPECT_EQ(Buffer::kContained, buffer.storage_); in TEST() [all …]
|
/external/webrtc/webrtc/base/ |
D | buffer.cc | 18 Buffer::Buffer() : size_(0), capacity_(0), data_(nullptr) { in Buffer() function in rtc::Buffer 22 Buffer::Buffer(const Buffer& buf) : Buffer(buf.data(), buf.size()) { in Buffer() function in rtc::Buffer 25 Buffer::Buffer(Buffer&& buf) in Buffer() function in rtc::Buffer 33 Buffer::Buffer(size_t size) : Buffer(size, size) { in Buffer() function in rtc::Buffer 36 Buffer::Buffer(size_t size, size_t capacity) in Buffer() function in rtc::Buffer 44 Buffer::~Buffer() = default;
|
D | buffer_unittest.cc | 26 void TestBuf(const Buffer& b1, size_t size, size_t capacity) { in TestBuf() 34 TestBuf(Buffer(), 0, 0); in TEST() 35 TestBuf(Buffer(Buffer()), 0, 0); in TEST() 36 TestBuf(Buffer(0), 0, 0); in TEST() 40 TestBuf(Buffer(0 + 0, 10), 0, 10); in TEST() 42 TestBuf(Buffer(kTestData, 0), 0, 0); in TEST() 43 TestBuf(Buffer(kTestData, 0, 20), 0, 20); in TEST() 47 Buffer buf(kTestData, 7); in TEST() 54 Buffer buf(kTestData, 7, 14); in TEST() 61 Buffer buf(kTestData); in TEST() [all …]
|
D | buffer.h | 49 class Buffer { 51 Buffer(); // An empty buffer. 52 Buffer(const Buffer& buf); // Copy size and contents of an existing buffer. 53 Buffer(Buffer&& buf); // Move contents from an existing buffer. 56 explicit Buffer(size_t size); 57 Buffer(size_t size, size_t capacity); 62 Buffer(const T* data, size_t size) in Buffer() function 63 : Buffer(data, size, size) {} in Buffer() 65 Buffer(const T* data, size_t size, size_t capacity) in Buffer() function 66 : Buffer(size, capacity) { in Buffer() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | BinaryByteStream.h | 43 ArrayRef<uint8_t> &Buffer) override { in readBytes() argument 46 Buffer = Data.slice(Offset, Size); in readBytes() 51 ArrayRef<uint8_t> &Buffer) override { in readLongestContiguousChunk() argument 54 Buffer = Data.slice(Offset); in readLongestContiguousChunk() 78 MemoryBufferByteStream(std::unique_ptr<MemoryBuffer> Buffer, in MemoryBufferByteStream() argument 80 : BinaryByteStream(Buffer->getBuffer(), Endian), in MemoryBufferByteStream() 81 MemBuffer(std::move(Buffer)) {} in MemoryBufferByteStream() 102 ArrayRef<uint8_t> &Buffer) override { in readBytes() argument 103 return ImmutableStream.readBytes(Offset, Size, Buffer); in readBytes() 107 ArrayRef<uint8_t> &Buffer) override { in readLongestContiguousChunk() argument [all …]
|
/external/libchrome/mojo/public/js/lib/ |
D | buffer.js | 18 function Buffer(sizeOrArrayBuffer) { class 28 Object.defineProperty(Buffer.prototype, "byteLength", { 32 Buffer.prototype.alloc = function(size) { class 46 Buffer.prototype.grow = function(size) { 53 Buffer.prototype.trim = function() { 58 Buffer.prototype.getUint8 = function(offset) { 61 Buffer.prototype.getUint16 = function(offset) { 64 Buffer.prototype.getUint32 = function(offset) { 67 Buffer.prototype.getUint64 = function(offset) { 79 Buffer.prototype.getInt8 = function(offset) { [all …]
|
/external/swiftshader/third_party/llvm-7.0/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 …]
|
/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 …]
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_diag.cc | 127 static void RenderHex(InternalScopedString *Buffer, UIntMax Val) { in RenderHex() argument 129 Buffer->append("0x%08x%08x%08x%08x", (unsigned int)(Val >> 96), in RenderHex() 137 static void RenderLocation(InternalScopedString *Buffer, Location Loc) { in RenderLocation() argument 142 Buffer->append("<unknown>"); in RenderLocation() 144 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation() 150 Buffer->append("%p", Loc.getMemoryLocation()); in RenderLocation() 155 RenderSourceLocation(Buffer, Info.file, Info.line, Info.column, in RenderLocation() 159 RenderModuleLocation(Buffer, Info.module, Info.module_offset, in RenderLocation() 162 Buffer->append("%p", Info.address); in RenderLocation() 166 Buffer->append("<unknown>"); in RenderLocation() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
D | buffer_sequence_adapter.hpp | 61 template <typename Buffer, typename Buffers> 73 Buffer buffer(*iter); in buffer_sequence_adapter() 100 if (asio::buffer_size(Buffer(*iter)) > 0) in all_empty() 111 Buffer buffer(*iter); in validate() 116 static Buffer first(const Buffers& buffer_sequence) in first() 122 Buffer buffer(*iter); in first() 126 return Buffer(); in first() 135 template <typename Buffer> 136 class buffer_sequence_adapter<Buffer, asio::mutable_buffers_1> 143 init_native_buffer(buffer_, Buffer(buffer_sequence)); in buffer_sequence_adapter() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 170 size_t Match(StringRef Buffer, size_t &MatchLen, 172 void PrintVariableUses(const SourceMgr &SM, StringRef Buffer, 175 void PrintFuzzyMatch(const SourceMgr &SM, StringRef Buffer, 188 ComputeMatchDistance(StringRef Buffer, 440 size_t Pattern::Match(StringRef Buffer, size_t &MatchLen, in Match() argument 445 return Buffer.size(); in Match() 451 return Buffer.find(FixedStr); in Match() 492 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match() 510 return FullMatch.data() - Buffer.data() + MatchStartSkip; in Match() 518 Pattern::ComputeMatchDistance(StringRef Buffer, in ComputeMatchDistance() argument [all …]
|
/external/aac/libFDK/src/ |
D | FDK_bitbuffer.cpp | 121 FDKmemclear((*hBitBuf)->Buffer, bufSize * sizeof(UCHAR)); in FDK_CreateBitBuffer() 133 hBitBuf->Buffer = pBuffer; in FDK_InitBitBuffer() 166 UINT tx = (hBitBuf->Buffer[byteOffset & byteMask] << 24) | in FDK_get() 167 (hBitBuf->Buffer[(byteOffset + 1) & byteMask] << 16) | in FDK_get() 168 (hBitBuf->Buffer[(byteOffset + 2) & byteMask] << 8) | in FDK_get() 169 hBitBuf->Buffer[(byteOffset + 3) & byteMask]; in FDK_get() 173 tx |= hBitBuf->Buffer[(byteOffset + 4) & byteMask] >> (8 - bitOffset); in FDK_get() 188 UINT cache = (hBitBuf->Buffer[(byteOffset - 3)] << 24) | in FDK_get32() 189 (hBitBuf->Buffer[(byteOffset - 2)] << 16) | in FDK_get32() 190 (hBitBuf->Buffer[(byteOffset - 1)] << 8) | in FDK_get32() [all …]
|