Home
last modified time | relevance | path

Searched refs:ToByteArray (Results 1 – 9 of 9) 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/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/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/AddressBook/
DSampleUsage.cs63 bytes = book.ToByteArray(); in Main()
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs75 byte[] outputData = response.ToByteArray(); in RunTest()