Searched refs:ReadOnlySequenceFactory (Results 1 - 5 of 5) sorted by relevance
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
H A D | MessageParsingHelpers.cs | 51 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); 66 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); in AssertReadingMessage() 96 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
|
H A D | ReadOnlySequenceFactory.cs | 42 internal static class ReadOnlySequenceFactory class 77 /// https://github.com/dotnet/corefx/blob/e99ec129cfd594d53f4390bf97d1d736cff6f860/src/System.Memory/tests/ReadOnlyBuffer/ReadOnlySequenceFactory.byte.cs
|
H A D | CodedInputStreamTest.cs | 92 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 D | ParseRawPrimitivesBenchmark.cs | 93 stringInputBuffersSegmented.Add(encodedSize, ReadOnlySequenceFactory.CreateWithContent(buffer, segmentSize: 128, addEmptySegmentDelimiters: false)); in GlobalSetup()
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
H A D | RepeatedFieldTest.cs | 667 var sequence = ReadOnlySequenceFactory.CreateWithContent(stream.ToArray()); in TestPackedRepeatedFieldCollectionNotAllocatedWhenLengthExceedsRemainingData()
|
Completed in 6 milliseconds