Lines Matching refs:blockSize
226 for (int blockSize = 1; blockSize <= 16; blockSize *= 2)
229 new SmallBlockInputStream(data, blockSize));
233 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseContext ctx) =>
256 for (int blockSize = 1; blockSize <= 16; blockSize *= 2)
259 new SmallBlockInputStream(data, blockSize));
263 AssertReadFromParseContext(ReadOnlySequenceFactory.CreateWithContent(data, blockSize), (ref ParseContext ctx) =>
321 for (int blockSize = 1; blockSize < 256; blockSize *= 2)
323 message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize));
339 for (int blockSize = 1; blockSize < 256; blockSize *= 2)
341 message2 = TestAllTypes.Parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(rawBytes, blockSize));
642 private readonly int blockSize;
644 public SmallBlockInputStream(byte[] data, int blockSize)
647 this.blockSize = blockSize;
652 return base.Read(buffer, offset, Math.Min(count, blockSize));