C# Class Support.SupportClass

Mostra file Open project: RHY3756547/FreeSO

Public Methods

Method Description
CreateNewInstance ( System classType ) : Object

Creates an instance of a received Type

Deserialize ( System binaryReader ) : Object
GetSBytesFromString ( string sourceString, int sourceStart, int sourceEnd, sbyte &destinationArray, int destinationStart ) : void

Method that copies an array of sbytes from a String to a received array .

HashtableRemove ( System hashtable, System key ) : Object

Removes the element with the specified key from a Hashtable instance.

Identity ( double literal ) : double

This method is used as a dummy method to simulate VJ++ behavior

Identity ( float literal ) : float

This method is used as a dummy method to simulate VJ++ behavior

Identity ( long literal ) : long

This method is used as a dummy method to simulate VJ++ behavior

Identity ( ulong literal ) : ulong

This method is used as a dummy method to simulate VJ++ behavior

PutElement ( System hashTable, System key, System newValue ) : Object
ReadInput ( System sourceStream, sbyte &target, int start, int count ) : Int32

Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.

Serialize ( System stream, System objectToSend ) : void

Writes an object to the specified Stream

ToByteArray ( sbyte sbyteArray ) : byte[]

Converts an array of sbytes to an array of bytes

ToByteArray ( string sourceString ) : byte[]

Converts a string to an array of bytes

URShift ( int number, int bits ) : int
URShift ( int number, long bits ) : int
URShift ( long number, int bits ) : long
URShift ( long number, long bits ) : long
WriteStackTrace ( System throwable, System stream ) : void

Method Details

CreateNewInstance() public static method

Creates an instance of a received Type
public static CreateNewInstance ( System classType ) : Object
classType System The Type of the new class instance to return
return System.Object

Deserialize() public static method

public static Deserialize ( System binaryReader ) : Object
binaryReader System
return System.Object

GetSBytesFromString() public static method

Method that copies an array of sbytes from a String to a received array .
public static GetSBytesFromString ( string sourceString, int sourceStart, int sourceEnd, sbyte &destinationArray, int destinationStart ) : void
sourceString string The String to get the sbytes.
sourceStart int Position in the String to start getting sbytes.
sourceEnd int Position in the String to end getting sbytes.
destinationArray sbyte Array to store the bytes.
destinationStart int Position in the destination array to start storing the sbytes.
return void

HashtableRemove() public static method

Removes the element with the specified key from a Hashtable instance.
public static HashtableRemove ( System hashtable, System key ) : Object
hashtable System The Hashtable instance
key System The key of the element to remove
return System.Object

Identity() public static method

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( double literal ) : double
literal double The literal to return
return double

Identity() public static method

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( float literal ) : float
literal float The literal to return
return float

Identity() public static method

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( long literal ) : long
literal long The literal to return
return long

Identity() public static method

This method is used as a dummy method to simulate VJ++ behavior
public static Identity ( ulong literal ) : ulong
literal ulong The literal to return
return ulong

PutElement() public static method

public static PutElement ( System hashTable, System key, System newValue ) : Object
hashTable System
key System
newValue System
return System.Object

ReadInput() public static method

Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.
public static ReadInput ( System sourceStream, sbyte &target, int start, int count ) : Int32
sourceStream System The source Stream to read from
target sbyte Contains the array of characteres read from the source Stream.
start int The starting index of the target array.
count int The maximum number of characters to read from the source Stream.
return System.Int32

Serialize() public static method

Writes an object to the specified Stream
public static Serialize ( System stream, System objectToSend ) : void
stream System The target Stream
objectToSend System The object to be sent
return void

ToByteArray() public static method

Converts an array of sbytes to an array of bytes
public static ToByteArray ( sbyte sbyteArray ) : byte[]
sbyteArray sbyte The array of sbytes to be converted
return byte[]

ToByteArray() public static method

Converts a string to an array of bytes
public static ToByteArray ( string sourceString ) : byte[]
sourceString string The string to be converted
return byte[]

URShift() public static method

public static URShift ( int number, int bits ) : int
number int
bits int
return int

URShift() public static method

public static URShift ( int number, long bits ) : int
number int
bits long
return int

URShift() public static method

public static URShift ( long number, int bits ) : long
number long
bits int
return long

URShift() public static method

public static URShift ( long number, long bits ) : long
number long
bits long
return long

WriteStackTrace() public static method

public static WriteStackTrace ( System throwable, System stream ) : void
throwable System
stream System
return void