C# Class ProtocolBuffers.ProtocolParser

Exibir arquivo Open project: enyim/ProtoBuf Class Usage Examples

Public Methods

Method Description
ReadBytes ( Stream stream ) : byte[]
ReadKey ( Stream stream ) : Key
ReadKey ( byte firstByte, Stream stream ) : Key
ReadString ( Stream stream ) : string
SkipKey ( Stream stream, Key key ) : void
WriteBytes ( Stream stream, byte val ) : void
WriteKey ( Stream stream, Key key ) : void
WriteString ( Stream stream, string val ) : void

Private Methods

Method Description
ReadDouble ( BinaryReader reader ) : double
ReadFixed32 ( BinaryReader reader ) : uint
ReadFixed64 ( BinaryReader reader ) : ulong
ReadFloat ( BinaryReader reader ) : float
ReadSFixed32 ( BinaryReader reader ) : int
ReadSFixed64 ( BinaryReader reader ) : long
WriteDouble ( BinaryWriter writer, double val ) : void
WriteFixed32 ( BinaryWriter writer, uint val ) : void
WriteFixed64 ( BinaryWriter writer, ulong val ) : void
WriteFloat ( BinaryWriter writer, float val ) : void
WriteSFixed32 ( BinaryWriter writer, int val ) : void
WriteSFixed64 ( BinaryWriter writer, long val ) : void

Method Details

ReadBytes() public static method

public static ReadBytes ( Stream stream ) : byte[]
stream Stream
return byte[]

ReadKey() public static method

public static ReadKey ( Stream stream ) : Key
stream Stream
return Key

ReadKey() public static method

public static ReadKey ( byte firstByte, Stream stream ) : Key
firstByte byte
stream Stream
return Key

ReadString() public static method

public static ReadString ( Stream stream ) : string
stream Stream
return string

SkipKey() public static method

public static SkipKey ( Stream stream, Key key ) : void
stream Stream
key Key
return void

WriteBytes() public static method

public static WriteBytes ( Stream stream, byte val ) : void
stream Stream
val byte
return void

WriteKey() public static method

public static WriteKey ( Stream stream, Key key ) : void
stream Stream
key Key
return void

WriteString() public static method

public static WriteString ( Stream stream, string val ) : void
stream Stream
val string
return void