C# Class SilentOrbit.ProtocolBuffers.PositionStream

Wrapper for streams that does not support the Position property. Adds support for the Position property.
Inheritance: Stream
Datei anzeigen Open project: hultqvist/protobuf Class Usage Examples

Public Methods

Method Description
Flush ( ) : void
PositionStream ( Stream baseStream ) : System

Define how many bytes are allowed to read

Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

PositionStream() public method

Define how many bytes are allowed to read
public PositionStream ( Stream baseStream ) : System
baseStream Stream /// Base stream. ///
return System

Read() public method

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

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void