Home
last modified time | relevance | path

Searched refs:ToByteArray (Results 1 – 25 of 29) sorted by relevance

12

/external/protobuf/csharp/src/Google.Protobuf.Test/
DUnknownFieldSetTest.cs67 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 …]
DGeneratedMessageTest.cs131 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()
DByteStringTest.cs117 byte[] data = bs.ToByteArray(); in ToByteArrayCopiesContents()
165 Assert.AreEqual(data, bs.ToByteArray()); in FromBase64_WithText()
DCodedInputStreamTest.cs234 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/
DSerializationBenchmark.cs78 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/
DWorkerServiceGrpc.cs32 …: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…
DTestGrpc.cs37 …: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 …]
DMetricsGrpc.cs36 …: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…
DReportQpsScenarioServiceGrpc.cs32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
DBenchmarkServiceGrpc.cs32 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
33 …:Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::G…
DCustomErrorDetailsTest.cs123 context.ResponseTrailers.Add(DebugInfoTrailerName, debugInfo.ToByteArray()); in UnaryCall()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs74 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/
DWrappersTest.cs74 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/
DRouteGuideGrpc.cs33 …: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/
DMathGrpc.cs30 …: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/
DGeneratedMessageTest.cs131 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()
DByteStringTest.cs113 byte[] data = bs.ToByteArray(); in ToByteArrayCopiesContents()
161 Assert.AreEqual(data, bs.ToByteArray()); in FromBase64_WithText()
DCodedInputStreamTest.cs234 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/
DReflectionGrpc.cs32 …: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/
DHelloworldGrpc.cs33 …: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/
DHelloworldGrpc.cs34 …: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/
DHelloworldGrpc.cs33 …: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/
DHealthGrpc.cs33 …: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/
DMessageExtensions.cs96 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/
DSampleUsage.cs63 bytes = book.ToByteArray(); in Main()

12