Home
last modified time | relevance | path

Searched refs:ReadOnlySequenceFactory (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.cs42 internal static class ReadOnlySequenceFactory class
77 /// https://github.com/dotnet/corefx/blob/e99ec129cfd594d53f4390bf97d1d736cff6f860/src/System.Memory/tests/ReadOnlyBuffer/ReadOnlySequenceFactory.byte.cs
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 6 milliseconds