Home
last modified time | relevance | path

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

/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/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/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/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()
662 var data = SampleMessages.CreateFullTestAllTypes().ToByteArray(); in IgnoreUnknownFields_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 …ream input = CodedInputStream.CreateWithLimits(new MemoryStream(data64.ToByteArray()), 1000000, 63… in MaliciousRecursion()
332 … MemoryStream ms = new MemoryStream(SampleMessages.CreateFullTestAllTypes().ToByteArray()); in SizeLimit()
DCodedOutputStreamTest.cs198 byte[] rawBytes = message.ToByteArray(); in WriteWholeMessage_VaryingBlockSizes()
/external/protobuf/csharp/src/Google.Protobuf/
DMessageExtensions.cs107 public static byte[] ToByteArray(this IMessage message) in ToByteArray() method in Google.Protobuf.MessageExtensions
154 return ByteString.AttachBytes(message.ToByteArray()); in ToByteString()
DByteString.cs120 public byte[] ToByteArray() in ToByteArray() method in Google.Protobuf.ByteString
/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/AddressBook/
DSampleUsage.cs63 bytes = book.ToByteArray(); in Main()
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs75 byte[] outputData = response.ToByteArray(); in RunTest()