C# Class Tx.Network.Block

Datei anzeigen Open project: Reactive-Extensions/Tx

Protected Methods

Method Description
Block ( BlockType type, UInt32 length ) : System
ReadAsciiOption ( BinaryReader reader, int len ) : string
ReadBytesOption ( BinaryReader reader, int len ) : byte[]
ReadEndOfPacket ( BinaryReader reader ) : void

The inheriting classes must call this as last line in their constructor

Method Details

Block() protected method

protected Block ( BlockType type, UInt32 length ) : System
type BlockType
length System.UInt32
return System

ReadAsciiOption() protected method

protected ReadAsciiOption ( BinaryReader reader, int len ) : string
reader System.IO.BinaryReader
len int
return string

ReadBytesOption() protected method

protected ReadBytesOption ( BinaryReader reader, int len ) : byte[]
reader System.IO.BinaryReader
len int
return byte[]

ReadEndOfPacket() protected method

The inheriting classes must call this as last line in their constructor
protected ReadEndOfPacket ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void