Method | Description | |
---|---|---|
Close ( ) : void |
Closes the current stream and releases any resources associated with the current stream.
|
|
DecodeString ( byte buffer, int offset, int count ) : string |
Decodes a sequence of bytes from the specified byte array into a string.
|
|
EncodeString ( char chars, int offset, int count ) : byte[] |
Decodes a sequence of bytes from the specified char array into a string.
|
|
EncodeString ( string @string ) : byte[] |
Encodes all the characters in the specified string into a sequence of bytes.
|
|
Receive ( int count ) : byte[] |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
Receive ( byte buffer, int offset, int count ) : void |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
ReceiveByte ( ) : byte |
Reads a byte from the stream and advances the position within the stream by one byte.
|
|
ReceiveRectangle ( ) : VncRectangle |
Reads a VncRectangle from the stream and advances the position within the stream by 8 bytes.
|
|
ReceiveString ( int maxLength = 0xfff ) : string |
Reads a string from the stream.
|
|
ReceiveUInt16BE ( ) : ushort |
Reads a ushort in big-endian encoding from the stream and advances the position within the stream by two bytes.
|
|
ReceiveUInt32BE ( ) : uint |
Reads a uint in big-endian encoding from the stream and advances the position within the stream by two bytes.
|
|
ReceiveVersion ( ) : System.Version |
Receives version information from the stream.
|
|
Require ( bool condition, string message, Vnc reason ) : void |
Throws a VncException if a specific condition is not met.
|
|
SanityCheck ( bool condition ) : void |
Throws a VncException if a specific condition is not met.
|
|
Send ( byte buffer ) : void |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
|
Send ( byte buffer, int offset, int count ) : void |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
|
SendByte ( byte value ) : void |
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
|
|
SendRectangle ( VncRectangle region ) : void |
Writes a VncRectangle to the current position in the stream and advances the position within the stream by 8 bytes.
|
|
SendString ( string @string, bool includeLength = false ) : void |
Writes a string in big endian encoding to the current position in the stream.
|
|
SendUInt16BE ( ushort value ) : void |
Writes a ushort in big endian encoding to the current position in the stream and advances the position within the stream by two bytes.
|
|
SendUInt32BE ( uint value ) : void |
Writes a uint in big endian encoding to the current position in the stream and advances the position within the stream by four bytes.
|
|
SendVersion ( System.Version version ) : void |
Writes a Version in big endian encoding to the current position in the stream.
|
|
VncStream ( ) : System |
Initializes a new instance of the VncStream class.
|
public static DecodeString ( byte buffer, int offset, int count ) : string | ||
buffer | byte |
/// The |
offset | int | /// The index of the first byte to decode. /// |
count | int | /// The number of bytes to decode. /// |
return | string |
public static EncodeString ( char chars, int offset, int count ) : byte[] | ||
chars | char |
/// The |
offset | int | /// The index of the first byte to decode. /// |
count | int | /// The number of bytes to decode. /// |
return | byte[] |
public static EncodeString ( string @string ) : byte[] | ||
@string | string | |
return | byte[] |
public Receive ( int count ) : byte[] | ||
count | int | /// The number of bytes to read. /// |
return | byte[] |
public Receive ( byte buffer, int offset, int count ) : void | ||
buffer | byte |
/// An array of bytes. When this method returns, the buffer contains the specified byte array with
/// the values between |
offset | int |
/// The zero-based byte offset in |
count | int | /// The maximum number of bytes to be read from the current stream. /// |
return | void |
public ReceiveString ( int maxLength = 0xfff ) : string | ||
maxLength | int |
/// The maximum length of the |
return | string |
public static Require ( bool condition, string message, Vnc reason ) : void | ||
condition | bool | /// The condition which should be met. /// |
message | string |
/// A |
reason | Vnc |
/// A |
return | void |
public static SanityCheck ( bool condition ) : void | ||
condition | bool | /// The condition which should be met. /// |
return | void |
public Send ( byte buffer ) : void | ||
buffer | byte | /// The bytes to write to the stream. /// |
return | void |
public Send ( byte buffer, int offset, int count ) : void | ||
buffer | byte |
/// An array of bytes. This method copies |
offset | int |
/// The zero-based byte offset in |
count | int | /// The number of bytes to be written to the current stream. /// |
return | void |
public SendByte ( byte value ) : void | ||
value | byte |
/// The |
return | void |
public SendRectangle ( VncRectangle region ) : void | ||
region | VncRectangle |
/// The |
return | void |
public SendString ( string @string, bool includeLength = false ) : void | ||
@string | string | |
includeLength | bool |
/// |
return | void |
public SendUInt16BE ( ushort value ) : void | ||
value | ushort |
/// The |
return | void |
public SendUInt32BE ( uint value ) : void | ||
value | uint |
/// The |
return | void |
public SendVersion ( System.Version version ) : void | ||
version | System.Version |
/// The |
return | void |