C# Class SilentOrbit.ProtocolBuffers.ProtocolParser

Afficher le fichier Open project: hultqvist/protobuf Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

ReadString() public static méthode

public static ReadString ( System.Stream stream ) : string
stream System.Stream
Résultat string

SkipBytes() public static méthode

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
Résultat void

WriteBytes() public static méthode

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

WriteString() public static méthode

public static WriteString ( System.Stream stream, string val ) : void
stream System.Stream
val string
Résultat void