/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 58 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 77 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 84 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 101 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 108 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 116 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 123 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 175 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 181 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteLittleEndian32() [all …]
|
D | MessageParsingHelpers.cs | 96 …Assert.AreEqual(bytes, bufferWriter.WrittenSpan.ToArray(), "Both serialization approaches need to … 129 Assert.AreEqual(bytes, bufferWriter.WrittenSpan.ToArray()); in AssertWritingMessage() 134 Assert.AreEqual(bytes, singleSpan.ToArray()); in AssertWritingMessage() 142 Assert.AreEqual(bytes, segmentedBufferWriter.WrittenSpan.ToArray()); in AssertWritingMessage() 150 Assert.AreEqual(bytes, stackAllocBuffer.ToArray()); in AssertWritingMessage()
|
D | ByteStringTest.cs | 193 CollectionAssert.AreEqual(bs.Span.ToArray(), bs.ToArray()); in GetEnumerator() 238 CollectionAssert.AreEqual(data, ms.ToArray()); in WriteToStream() 257 CollectionAssert.AreEqual(data, ms.ToArray()); in WriteToStream_Stackalloc() 394 var copied = byteString.Span.ToArray(); in GetContentsAsReadOnlySpan() 402 var copied = byteString.Memory.ToArray(); in GetContentsAsReadOnlyMemory()
|
D | ReadOnlySequenceFactory.cs | 64 segments.Add(segment.ToArray()); in CreateWithContent() 72 return CreateSegments(segments.ToArray()); in CreateWithContent()
|
D | GeneratedMessageTest.cs | 279 memoryStream.ToArray(), in MapWithOnlyValue() 301 memoryStream.ToArray(), in MapWithOnlyKey_PrimitiveValue() 323 memoryStream.ToArray(), in MapWithOnlyKey_MessageValue() 356 memoryStream.ToArray(), in MapIgnoresExtraFieldsWithinEntryMessages() 385 memoryStream.ToArray(), in MapFieldOrderIsIrrelevant() 437 memoryStream.ToArray(), in MapNonContiguousEntries() 478 memoryStream.ToArray(), in DuplicateKeys_LastEntryWins() 707 stream.ToArray(), in DiscardUnknownFields_RealDataStillRead() 760 …MessageThrows<TestAllTypes, InvalidProtocolBufferException>(TestAllTypes.Parser, stream.ToArray()); in ExtraEndGroupThrows()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 58 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 77 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 84 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 101 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 108 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 116 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 123 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 175 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 181 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteLittleEndian32() [all …]
|
D | MessageParsingHelpers.cs | 96 …Assert.AreEqual(bytes, bufferWriter.WrittenSpan.ToArray(), "Both serialization approaches need to … 129 Assert.AreEqual(bytes, bufferWriter.WrittenSpan.ToArray()); in AssertWritingMessage() 134 Assert.AreEqual(bytes, singleSpan.ToArray()); in AssertWritingMessage() 142 Assert.AreEqual(bytes, segmentedBufferWriter.WrittenSpan.ToArray()); in AssertWritingMessage() 150 Assert.AreEqual(bytes, stackAllocBuffer.ToArray()); in AssertWritingMessage()
|
D | ByteStringTest.cs | 193 CollectionAssert.AreEqual(bs.Span.ToArray(), bs.ToArray()); in GetEnumerator() 238 CollectionAssert.AreEqual(data, ms.ToArray()); in WriteToStream() 257 CollectionAssert.AreEqual(data, ms.ToArray()); in WriteToStream_Stackalloc() 394 var copied = byteString.Span.ToArray(); in GetContentsAsReadOnlySpan() 402 var copied = byteString.Memory.ToArray(); in GetContentsAsReadOnlyMemory()
|
D | ReadOnlySequenceFactory.cs | 64 segments.Add(segment.ToArray()); in CreateWithContent() 72 return CreateSegments(segments.ToArray()); in CreateWithContent()
|
D | GeneratedMessageTest.cs | 279 memoryStream.ToArray(), in MapWithOnlyValue() 301 memoryStream.ToArray(), in MapWithOnlyKey_PrimitiveValue() 323 memoryStream.ToArray(), in MapWithOnlyKey_MessageValue() 356 memoryStream.ToArray(), in MapIgnoresExtraFieldsWithinEntryMessages() 385 memoryStream.ToArray(), in MapFieldOrderIsIrrelevant() 437 memoryStream.ToArray(), in MapNonContiguousEntries() 478 memoryStream.ToArray(), in DuplicateKeys_LastEntryWins() 707 stream.ToArray(), in DiscardUnknownFields_RealDataStillRead() 760 …MessageThrows<TestAllTypes, InvalidProtocolBufferException>(TestAllTypes.Parser, stream.ToArray()); in ExtraEndGroupThrows()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | ByteString.cs | 136 return bytes.ToArray(); in ToByteArray() 153 return Convert.ToBase64String(bytes.ToArray()); in ToBase64() 181 byte[] bytes = memoryStream.ToArray(); in FromStream() 184 …= memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStream.ToArray(); in FromStream() 234 return new ByteString(bytes.ToArray()); in CopyFrom() 282 byte[] array = bytes.ToArray(); in ToString() 334 return new CodedInputStream(bytes.ToArray()); in CreateCodedInput() 429 var array = bytes.ToArray(); in WriteTo()
|
D | ByteStringAsync.cs | 55 byte[] bytes = memoryStream.ToArray(); in FromStreamAsyncCore() 58 …= memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStream.ToArray(); in FromStreamAsyncCore()
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | ByteString.cs | 136 return bytes.ToArray(); in ToByteArray() 153 return Convert.ToBase64String(bytes.ToArray()); in ToBase64() 181 byte[] bytes = memoryStream.ToArray(); in FromStream() 184 …= memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStream.ToArray(); in FromStream() 234 return new ByteString(bytes.ToArray()); in CopyFrom() 282 byte[] array = bytes.ToArray(); in ToString() 334 return new CodedInputStream(bytes.ToArray()); in CreateCodedInput() 429 var array = bytes.ToArray(); in WriteTo()
|
D | ByteStringAsync.cs | 55 byte[] bytes = memoryStream.ToArray(); in FromStreamAsyncCore() 58 …= memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStream.ToArray(); in FromStreamAsyncCore()
|
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 207 Assert.AreEqual(rawBytes, rawOutput.ToArray()); in WriteWholeMessage_VaryingBlockSizes() 401 …Assert.AreEqual(1, memoryStream.ToArray().Length); // Flushed data from CodedOutputStream to Memor… in Dispose_DisposesUnderlyingStream()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 207 Assert.AreEqual(rawBytes, rawOutput.ToArray()); in WriteWholeMessage_VaryingBlockSizes() 401 …Assert.AreEqual(1, memoryStream.ToArray().Length); // Flushed data from CodedOutputStream to Memor… in Dispose_DisposesUnderlyingStream()
|
/external/llvm/include/llvm/ADT/ |
D | edit_distance.h | 43 unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray, 59 typename ArrayRef<T>::size_type n = ToArray.size(); 82 Previous + (FromArray[y-1] == ToArray[x-1] ? 0u : 1u), 86 if (FromArray[y-1] == ToArray[x-1]) Row[x] = Previous;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | edit_distance.h | 42 unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray, 58 typename ArrayRef<T>::size_type n = ToArray.size(); 81 Previous + (FromArray[y-1] == ToArray[x-1] ? 0u : 1u), 85 if (FromArray[y-1] == ToArray[x-1]) Row[x] = Previous;
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | edit_distance.h | 43 unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray, 59 typename ArrayRef<T>::size_type n = ToArray.size(); 82 Previous + (FromArray[y-1] == ToArray[x-1] ? 0u : 1u), 86 if (FromArray[y-1] == ToArray[x-1]) Row[x] = Previous;
|
/external/pdfium/fxjs/ |
D | cfx_v8_unittest.cpp | 52 EXPECT_TRUE(cfx_v8()->ToArray(empty).IsEmpty()); in TEST_F() 80 EXPECT_TRUE(cfx_v8()->ToArray(nullz).IsEmpty()); in TEST_F() 95 EXPECT_TRUE(cfx_v8()->ToArray(undef).IsEmpty()); in TEST_F() 110 EXPECT_TRUE(cfx_v8()->ToArray(boolz).IsEmpty()); in TEST_F() 119 EXPECT_TRUE(cfx_v8()->ToArray(boolz).IsEmpty()); in TEST_F() 134 EXPECT_TRUE(cfx_v8()->ToArray(num).IsEmpty()); in TEST_F() 149 EXPECT_TRUE(cfx_v8()->ToArray(str).IsEmpty()); in TEST_F() 158 EXPECT_TRUE(cfx_v8()->ToArray(str2).IsEmpty()); in TEST_F() 173 EXPECT_TRUE(cfx_v8()->ToArray(date).IsEmpty()); in TEST_F() 200 EXPECT_TRUE(cfx_v8()->ToArray(array)->IsArray()); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | tensor_util.h | 122 static void ToArray(SrcIter begin, SrcIter end, DstIter dst) { in ToArray() function 130 static void ToArray(SrcIter begin, SrcIter end, SrcIter dst) { in ToArray() function 135 ToArray(begin, end, dst); in FromArray() 144 static void ToArray(SrcIter begin, SrcIter end, Eigen::half* dst) { 160 static void ToArray(SrcIter begin, SrcIter end, bfloat16* dst) { 178 static void ToArray(SrcIter begin, SrcIter end, std::complex<RealType>* dst) { 215 CopyHelper<T>::ToArray( 230 CopyHelper<T>::ToArray(FieldHelper::GetField(proto).begin(),
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_array.h | 186 inline CPDF_Array* ToArray(CPDF_Object* obj) { in ToArray() function 190 inline const CPDF_Array* ToArray(const CPDF_Object* obj) { in ToArray() function 194 inline RetainPtr<CPDF_Array> ToArray(RetainPtr<CPDF_Object> obj) { in ToArray() function 195 return RetainPtr<CPDF_Array>(ToArray(obj.Get())); in ToArray() 198 inline RetainPtr<const CPDF_Array> ToArray(RetainPtr<const CPDF_Object> obj) { in ToArray() function 199 return RetainPtr<const CPDF_Array>(ToArray(obj.Get())); in ToArray()
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | ByteBufferTests.cs | 374 var bbArray = uut.ToArray<float>(0, len); in ByteBuffer_To_Array_Float() 379 var bbArray2 = uut.ToArray<float>(4, len - 1); in ByteBuffer_To_Array_Float() 388 var bbArray3 = uut.ToArray<float>(8, len - 4); in ByteBuffer_To_Array_Float() 408 var bbArray = uut.ToArray<T>(nOffset, data.Length); 424 var bbArray = uut.ToArray<T>(nOffset, data.Count); 425 Assert.ArrayEqual(data.ToArray(), bbArray); in data.ToArray() 446 var bbArray = uut.ToArray<T>(nOffset, data.Length);
|
/external/flatbuffers/net/FlatBuffers/ |
D | ByteBuffer.cs | 173 public byte[] ToArray(int pos, int len) in ToArray() method in FlatBuffers.ByteBuffer 175 return ToArray<byte>(pos, len); in ToArray() 250 public T[] ToArray<T>(int pos, int len) 254 … return MemoryMarshal.Cast<byte, T>(_buffer.ReadOnlySpan.Slice(pos)).Slice(0, len).ToArray(); 257 public T[] ToArray<T>(int pos, int len) 269 return ToArray<byte>(Position, Length - Position); in ToSizedArray() 274 return ToArray<byte>(0, Length); in ToFullArray()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | WrappersTest.cs | 195 var expectedBytes = rawOutput.ToArray(); in RepeatedWrappersBinaryFormat() 371 bytes = stream.ToArray(); in MergingStreamExplicitValue() 440 stream.ToArray(), in UnknownFieldInWrapperInt32FastPath() 467 stream.ToArray(), in UnknownFieldInWrapperInt32SlowPath() 494 stream.ToArray(), in UnknownFieldInWrapperInt64FastPath() 521 stream.ToArray(), in UnknownFieldInWrapperInt64SlowPath()
|