/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | UnknownFieldSetTest.cs | 67 emptyMessage.MergeFrom(message.ToByteArray()); in TestMergeCodedInput() 69 Assert.AreEqual(message.ToByteArray(), emptyMessage.ToByteArray()); in TestMergeCodedInput() 72 newMessage.MergeFrom(emptyMessage.ToByteArray()); in TestMergeCodedInput() 83 emptyMessage.MergeFrom(message.ToByteArray()); in TestMergeMessage() 87 Assert.AreEqual(message.ToByteArray(), otherEmptyMessage.ToByteArray()); in TestMergeMessage() 97 emptyMessage.MergeFrom(message.ToByteArray()); in TestEquals() 109 emptyMessage.MergeFrom(message.ToByteArray()); in TestHashCode() 120 Assert.AreEqual(emptyMessage.ToByteArray(), otherEmptyMessage.ToByteArray()); in TestClone() 123 emptyMessage.MergeFrom(message.ToByteArray()); in TestClone() 126 Assert.AreEqual(message.ToByteArray(), otherEmptyMessage.ToByteArray()); in TestClone() [all …]
|
D | GeneratedMessageTest.cs | 131 byte[] bytes = message.ToByteArray(); in RoundTrip_Empty() 166 byte[] bytes = message.ToByteArray(); in RoundTrip_SingleValues() 200 byte[] bytes = message.ToByteArray(); in RoundTrip_RepeatedValues() 232 byte[] bytes = message.ToByteArray(); in RoundTrip_Maps() 245 byte[] bytes = message.ToByteArray(); in MapWithEmptyEntry() 618 var bytes = message.ToByteArray(); in OneofSerialization_NonDefaultValue() 632 var bytes = message.ToByteArray(); in OneofSerialization_DefaultValue() 663 var data = SampleMessages.CreateFullTestAllTypes().ToByteArray(); in DiscardUnknownFields_AllTypes()
|
D | ByteStringTest.cs | 117 byte[] data = bs.ToByteArray(); in ToByteArrayCopiesContents() 165 Assert.AreEqual(data, bs.ToByteArray()); in FromBase64_WithText()
|
D | CodedInputStreamTest.cs | 234 byte[] rawBytes = message.ToByteArray(); in ReadWholeMessage_VaryingBlockSizes() 337 … = CodedInputStream.CreateWithLimits(new MemoryStream(atRecursiveLimit.ToByteArray()), 1000000, Co… in MaliciousRecursion() 346 … MemoryStream ms = new MemoryStream(SampleMessages.CreateFullTestAllTypes().ToByteArray()); in SizeLimit() 693 return message.ToByteArray(); in GenerateBigSerializedMessage()
|
/external/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
D | SerializationBenchmark.cs | 78 public void ToByteArray() => subTests.ForEach(item => item.ToByteArray()); in ToByteArray() method in Google.Protobuf.Benchmarks.SerializationBenchmark 96 sourceStream = new MemoryStream(data.ToByteArray()); in SubTest() 109 public void ToByteArray() => message.ToByteArray(); in ToByteArray() method in Google.Protobuf.Benchmarks.SerializationBenchmark.SubTest
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | WorkerServiceGrpc.cs | 32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 35 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 36 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 37 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 38 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
D | TestGrpc.cs | 37 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 38 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 39 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 40 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 41 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 42 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 43 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 551 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 672 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 673 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… [all …]
|
D | MetricsGrpc.cs | 36 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 37 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 38 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
D | ReportQpsScenarioServiceGrpc.cs | 32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
D | BenchmarkServiceGrpc.cs | 32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
D | CustomErrorDetailsTest.cs | 123 context.ResponseTrailers.Add(DebugInfoTrailerName, debugInfo.ToByteArray()); in UnaryCall()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
D | WrappersTest.cs | 74 var bytes = message.ToByteArray(); in NonDefaultSingleValues() 104 var bytes = message.ToByteArray(); in NonNullDefaultIsPreservedThroughSerialization() 143 var bytes = message.ToByteArray(); in RepeatedWrappersSerializeDeserialize() 171 var actualBytes = message.ToByteArray(); in RepeatedWrappersBinaryFormat() 197 var bytes = message.ToByteArray(); in MapWrappersSerializeDeserialize() 291 var bytes = message.ToByteArray(); in AssertOneofRoundTrip() 316 originalMessage.MergeFrom(mergingMessage.ToByteArray()); in Merging() 357 var bytes = new TestWellKnownTypes { Int32Field = 0 }.ToByteArray(); in MergingStreamNoValue()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | WrappersTest.cs | 74 var bytes = message.ToByteArray(); in NonDefaultSingleValues() 104 var bytes = message.ToByteArray(); in NonNullDefaultIsPreservedThroughSerialization() 143 var bytes = message.ToByteArray(); in RepeatedWrappersSerializeDeserialize() 171 var actualBytes = message.ToByteArray(); in RepeatedWrappersBinaryFormat() 197 var bytes = message.ToByteArray(); in MapWrappersSerializeDeserialize() 291 var bytes = message.ToByteArray(); in AssertOneofRoundTrip() 316 originalMessage.MergeFrom(mergingMessage.ToByteArray()); in Merging() 357 var bytes = new TestWellKnownTypes { Int32Field = 0 }.ToByteArray(); in MergingStreamNoValue()
|
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/ |
D | RouteGuideGrpc.cs | 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::R… 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::R… 35 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::R… 36 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::R… 37 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::R…
|
/external/grpc-grpc/src/csharp/Grpc.Examples/ |
D | MathGrpc.cs | 30 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::M… 31 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::M… 32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::M… 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::M…
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 131 byte[] bytes = message.ToByteArray(); in RoundTrip_Empty() 166 byte[] bytes = message.ToByteArray(); in RoundTrip_SingleValues() 200 byte[] bytes = message.ToByteArray(); in RoundTrip_RepeatedValues() 232 byte[] bytes = message.ToByteArray(); in RoundTrip_Maps() 245 byte[] bytes = message.ToByteArray(); in MapWithEmptyEntry() 618 var bytes = message.ToByteArray(); in OneofSerialization_NonDefaultValue() 632 var bytes = message.ToByteArray(); in OneofSerialization_DefaultValue() 663 var data = SampleMessages.CreateFullTestAllTypes().ToByteArray(); in DiscardUnknownFields_AllTypes()
|
D | ByteStringTest.cs | 113 byte[] data = bs.ToByteArray(); in ToByteArrayCopiesContents() 161 Assert.AreEqual(data, bs.ToByteArray()); in FromBase64_WithText()
|
D | CodedInputStreamTest.cs | 234 byte[] rawBytes = message.ToByteArray(); in ReadWholeMessage_VaryingBlockSizes() 323 … = CodedInputStream.CreateWithLimits(new MemoryStream(atRecursiveLimit.ToByteArray()), 1000000, Co… in MaliciousRecursion() 332 … MemoryStream ms = new MemoryStream(SampleMessages.CreateFullTestAllTypes().ToByteArray()); in SizeLimit()
|
/external/grpc-grpc/src/csharp/Grpc.Reflection/ |
D | ReflectionGrpc.cs | 32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
/external/grpc-grpc/examples/csharp/HelloworldLegacyCsproj/Greeter/ |
D | HelloworldGrpc.cs | 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H… 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H…
|
/external/grpc-grpc/examples/csharp/HelloworldXamarin/HelloworldXamarin/ |
D | HelloworldGrpc.cs | 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H… 35 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H…
|
/external/grpc-grpc/examples/csharp/Helloworld/Greeter/ |
D | HelloworldGrpc.cs | 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H… 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::H…
|
/external/grpc-grpc/src/csharp/Grpc.HealthCheck/ |
D | HealthGrpc.cs | 33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G… 34 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | MessageExtensions.cs | 96 public static byte[] ToByteArray(this IMessage message) in ToByteArray() method in Google.Protobuf.MessageExtensions 143 return ByteString.AttachBytes(message.ToByteArray()); in ToByteString()
|
/external/protobuf/csharp/src/AddressBook/ |
D | SampleUsage.cs | 63 bytes = book.ToByteArray(); in Main()
|