C# Class Google.Protobuf.CodedInputStreamTest.SmallBlockInputStream

A stream which limits the number of bytes it reads at a time. We use this to make sure that CodedInputStream doesn't screw up when reading in small blocks.
Inheritance: System.IO.MemoryStream
Show file Open project: dropbox/protobuf

Public Methods

Method Description
Read ( byte buffer, int offset, int count ) : int
SmallBlockInputStream ( byte data, int blockSize ) : System

Method Details

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

SmallBlockInputStream() public method

public SmallBlockInputStream ( byte data, int blockSize ) : System
data byte
blockSize int
return System