Home
last modified time | relevance | path

Searched refs:SmallBlockInputStream (Results 1 – 4 of 4) sorted by relevance

/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DCodedInputStreamTest.java68 private static final class SmallBlockInputStream extends FilterInputStream { class in CodedInputStreamTest
71 public SmallBlockInputStream(byte[] data, int blockSize) { in SmallBlockInputStream() method in CodedInputStreamTest.SmallBlockInputStream
75 public SmallBlockInputStream(InputStream in, int blockSize) { in SmallBlockInputStream() method in CodedInputStreamTest.SmallBlockInputStream
104 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
108 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
189 new SmallBlockInputStream(data, blockSize)); in assertReadLittleEndian32()
208 new SmallBlockInputStream(data, blockSize)); in assertReadLittleEndian64()
269 new SmallBlockInputStream(rawBytes, blockSize)); in testReadWholeMessage()
318 new SmallBlockInputStream(rawBytes, 3)); in testSkipRawBytesPastEndOfBufferWithLimit()
405 new SmallBlockInputStream(new byte[256], 8)); in testResetSizeCounter()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs72 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
75 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
163 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian32()
183 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian64()
242 … message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
367 private sealed class SmallBlockInputStream : MemoryStream class in Google.Protobuf.CodedInputStreamTest
371 public SmallBlockInputStream(byte[] data, int blockSize) in SmallBlockInputStream() method in Google.Protobuf.CodedInputStreamTest.SmallBlockInputStream
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs85 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
88 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
229 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian32()
259 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian64()
323 … message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
640 private sealed class SmallBlockInputStream : MemoryStream class in Google.Protobuf.CodedInputStreamTest
644 public SmallBlockInputStream(byte[] data, int blockSize) in SmallBlockInputStream() method in Google.Protobuf.CodedInputStreamTest.SmallBlockInputStream
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java84 return CodedInputStream.newInstance(new SmallBlockInputStream(data, blockSize)); in newDecoder()
145 private static final class SmallBlockInputStream extends FilterInputStream { class in CodedInputStreamTest
150 public SmallBlockInputStream(byte[] data, int blockSize) { in SmallBlockInputStream() method in CodedInputStreamTest.SmallBlockInputStream
454 SmallBlockInputStream bytes = new SmallBlockInputStream(new byte[] {1, 2, 3, 4, 5}, 3); in testSkipRawBytesActuallySkips()
668 new SmallBlockInputStream(TestUtil.getAllSet().toByteArray(), 16)); in testSizeLimit()
682 CodedInputStream.newInstance(new SmallBlockInputStream(new byte[256], 8)); in testResetSizeCounter()
792 CodedInputStream input = CodedInputStream.newInstance(new SmallBlockInputStream(bytes, 7)); in testSizeLimitMultipleMessages()