C# Class SilentOrbit.ProtocolBuffers.ProtocolParser

Mostra file Open project: hultqvist/protobuf Class Usage Examples

Public Methods

Method Description
ReadBytes ( System.Stream stream ) : byte[]

Reads a length delimited byte array

ReadString ( System.Stream stream ) : string
SkipBytes ( System.Stream stream ) : void

Skip the next varint length prefixed bytes. Alternative to ReadBytes when the data is not of interest.

WriteBytes ( System.Stream stream, byte val ) : void

Writes length delimited byte array

WriteString ( System.Stream stream, string val ) : void

Method Details

ReadBytes() public static method

Reads a length delimited byte array
public static ReadBytes ( System.Stream stream ) : byte[]
stream System.Stream
return byte[]

ReadString() public static method

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

SkipBytes() public static method

Skip the next varint length prefixed bytes. Alternative to ReadBytes when the data is not of interest.
public static SkipBytes ( System.Stream stream ) : void
stream System.Stream
return void

WriteBytes() public static method

Writes length delimited byte array
public static WriteBytes ( System.Stream stream, byte val ) : void
stream System.Stream
val byte
return void

WriteString() public static method

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