Home
last modified time | relevance | path

Searched refs:CreateWithContent (Results 1 – 5 of 5) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DMessageParsingHelpers.cs51 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
66 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); in AssertReadingMessage()
96 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
DReadOnlySequenceFactory.cs47 …public static ReadOnlySequence<byte> CreateWithContent(byte[] data, int segmentSize = 1, bool addE… in CreateWithContent() method in Google.Protobuf.ReadOnlySequenceFactory
DCodedInputStreamTest.cs92 …AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref Parse… in AssertReadVarint()
97 …AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref Parse… in AssertReadVarint()
233 …AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseC… in AssertReadLittleEndian32()
263 …AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseC… in AssertReadLittleEndian64()
341 …message2 = TestAllTypes.Parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(rawBytes, block… in ReadWholeMessage_VaryingBlockSizes_FromSequence()
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DParseRawPrimitivesBenchmark.cs93 …tringInputBuffersSegmented.Add(encodedSize, ReadOnlySequenceFactory.CreateWithContent(buffer, segm… in GlobalSetup()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs667 var sequence = ReadOnlySequenceFactory.CreateWithContent(stream.ToArray()); in TestPackedRepeatedFieldCollectionNotAllocatedWhenLengthExceedsRemainingData()