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/
H A DMessageParsingHelpers.cs51 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
66 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); in AssertReadingMessage()
96 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
H A DReadOnlySequenceFactory.cs47 public static ReadOnlySequence<byte> CreateWithContent(byte[] data, int segmentSize = 1, bool addEmptySegmentDelimiters = true) in CreateWithContent() method in Google.Protobuf.ReadOnlySequenceFactory
H A DCodedInputStreamTest.cs92 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref ParseContext ctx) => in AssertReadVarint()
97 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, bufferSize), (ref ParseContext ctx) => in AssertReadVarint()
233 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseContext ctx) => in AssertReadLittleEndian32()
263 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseContext ctx) => in AssertReadLittleEndian64()
341 message2 = TestAllTypes.Parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes_FromSequence()
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
H A DParseRawPrimitivesBenchmark.cs93 stringInputBuffersSegmented.Add(encodedSize, ReadOnlySequenceFactory.CreateWithContent(buffer, segmentSize: 128, addEmptySegmentDelimiters: false)); in GlobalSetup()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
H A DRepeatedFieldTest.cs667 var sequence = ReadOnlySequenceFactory.CreateWithContent(stream.ToArray()); in TestPackedRepeatedFieldCollectionNotAllocatedWhenLengthExceedsRemainingData()

Completed in 5 milliseconds