Searched refs:CreateWithContent (Results 1 – 5 of 5) sorted by relevance
/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
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));
|
D | ReadOnlySequenceFactory.cs | 47 …public static ReadOnlySequence<byte> CreateWithContent(byte[] data, int segmentSize = 1, bool addE… in CreateWithContent() method in Google.Protobuf.ReadOnlySequenceFactory
|
D | CodedInputStreamTest.cs | 92 …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/ |
D | ParseRawPrimitivesBenchmark.cs | 93 …tringInputBuffersSegmented.Add(encodedSize, ReadOnlySequenceFactory.CreateWithContent(buffer, segm… in GlobalSetup()
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 667 var sequence = ReadOnlySequenceFactory.CreateWithContent(stream.ToArray()); in TestPackedRepeatedFieldCollectionNotAllocatedWhenLengthExceedsRemainingData()
|