C# Класс RemoteViewing.Vnc.VncUtility

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

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

Метод Описание
AllocateScratch ( int bytes, byte &scratch ) : byte[]

Allocates a byte array of a given size.

DecodeUInt16BE ( byte buffer, int offset ) : ushort

Decodes a ushort from a byte-array, in big-endian encoding.

DecodeUInt32BE ( byte buffer, int offset ) : uint

Decodes a uint from a byte-array, in big-endian encoding.

EncodeUInt16BE ( ushort value ) : byte[]

Encodes a ushort as a byte array in big-endian encoding.

EncodeUInt16BE ( byte buffer, int offset, ushort value ) : void

Encodes a ushort as a byte array in big-endian encoding.

EncodeUInt32BE ( uint value ) : byte[]

Encodes a uint as a byte array in big-endian encoding.

EncodeUInt32BE ( byte buffer, int offset, uint value ) : void

Encodes a uint as a byte array in big-endian encoding.

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

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

Allocates a byte array of a given size.
public static AllocateScratch ( int bytes, byte &scratch ) : byte[]
bytes int /// The minimum required length of the byte array. ///
scratch byte /// A current byte array which can be re-used, if has enough size. ///
Результат byte[]

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

Decodes a ushort from a byte-array, in big-endian encoding.
public static DecodeUInt16BE ( byte buffer, int offset ) : ushort
buffer byte /// A array which contains the . ///
offset int /// The index in at which the starts. ///
Результат ushort

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

Decodes a uint from a byte-array, in big-endian encoding.
public static DecodeUInt32BE ( byte buffer, int offset ) : uint
buffer byte /// A array which contains the . ///
offset int /// The index in at which the starts. ///
Результат uint

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

Encodes a ushort as a byte array in big-endian encoding.
public static EncodeUInt16BE ( ushort value ) : byte[]
value ushort /// The to encode. ///
Результат byte[]

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

Encodes a ushort as a byte array in big-endian encoding.
public static EncodeUInt16BE ( byte buffer, int offset, ushort value ) : void
buffer byte /// The array in which to store the . ///
offset int /// The index of the first byte in at which the /// should be stored. ///
value ushort /// The to encode. ///
Результат void

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

Encodes a uint as a byte array in big-endian encoding.
public static EncodeUInt32BE ( uint value ) : byte[]
value uint /// The to encode. ///
Результат byte[]

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

Encodes a uint as a byte array in big-endian encoding.
public static EncodeUInt32BE ( byte buffer, int offset, uint value ) : void
buffer byte /// The array in which to store the . ///
offset int /// The index of the first byte in at which the /// should be stored. ///
value uint /// The to encode. ///
Результат void