C# Класс SilentOrbit.ProtocolBuffers.ProtocolParser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ReadBytes() публичный статический Метод

Reads a length delimited byte array
public static ReadBytes ( System.Stream stream ) : byte[]
stream System.Stream
Результат byte[]

ReadString() публичный статический Метод

public static ReadString ( System.Stream stream ) : string
stream System.Stream
Результат string

SkipBytes() публичный статический Метод

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
Результат void

WriteBytes() публичный статический Метод

Writes length delimited byte array
public static WriteBytes ( System.Stream stream, byte val ) : void
stream System.Stream
val byte
Результат void

WriteString() публичный статический Метод

public static WriteString ( System.Stream stream, string val ) : void
stream System.Stream
val string
Результат void