C# 클래스 RemoteViewing.Vnc.VncUtility

Provides utility methods.
파일 보기 프로젝트 열기: qmfrederik/remoteviewing 1 사용 예제들

공개 메소드들

메소드 설명
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