C# Класс Plasma.pnHelpers

Показать файл Открыть проект

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

Метод Описание
GetBytes ( string hex ) : byte[]

Converts a hex string to a byte array.

GetString ( byte buf ) : string

Converts an array of Bytes to a hex String

ReadString ( Plasma.hsStream s ) : string

Reads in a UTF-16 string with an int32 size

ReadString ( Plasma.hsStream s, int maxSize ) : string

Reads in a UTF-16 string with an int16 size and a predefined maximum size

ReadUuid ( Plasma.hsStream s ) : System.Guid
WriteString ( Plasma.hsStream s, string data ) : void

Writes a UTF-16 string with an int32 size

WriteString ( Plasma.hsStream s, string data, int maxSize ) : void
WriteUuid ( Plasma.hsStream s, System.Guid uuid ) : void

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

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

Converts a hex string to a byte array.
public static GetBytes ( string hex ) : byte[]
hex string
Результат byte[]

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

Converts an array of Bytes to a hex String
public static GetString ( byte buf ) : string
buf byte Array of Bytes to convert
Результат string

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

Reads in a UTF-16 string with an int32 size
public static ReadString ( Plasma.hsStream s ) : string
s Plasma.hsStream Stream to read from
Результат string

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

Reads in a UTF-16 string with an int16 size and a predefined maximum size
public static ReadString ( Plasma.hsStream s, int maxSize ) : string
s Plasma.hsStream Stream to read from
maxSize int Maximum string size
Результат string

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

public static ReadUuid ( Plasma.hsStream s ) : System.Guid
s Plasma.hsStream
Результат System.Guid

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

Writes a UTF-16 string with an int32 size
public static WriteString ( Plasma.hsStream s, string data ) : void
s Plasma.hsStream Stream to write to
data string String to write to the stream
Результат void

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

public static WriteString ( Plasma.hsStream s, string data, int maxSize ) : void
s Plasma.hsStream
data string
maxSize int
Результат void

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

public static WriteUuid ( Plasma.hsStream s, System.Guid uuid ) : void
s Plasma.hsStream
uuid System.Guid
Результат void