XBinder C# Runtime Library  2.9
Classes | Static Public Member Functions | List of all members
SupportClass Class Reference

Contains conversion support elements such as classes, interfaces and static methods. More...

Classes

class  ArraySupport
 This class manages array operations. More...
 

Static Public Member Functions

static int URShift (int number, int bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static int URShift (int number, long bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static long URShift (long number, int bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static long URShift (long number, long bits)
 Performs an unsigned bitwise right shift with the specified number More...
 
static void Serialize (System.IO.Stream stream, System.Object objectToSend)
 Writes an object to the specified Stream More...
 
static void Serialize (System.IO.BinaryWriter binaryWriter, System.Object objectToSend)
 Writes an object to the specified BinaryWriter More...
 
static void WriteStackTrace (System.Exception throwable, System.IO.TextWriter stream)
 Writes the exception stack trace to the received stream More...
 
static byte [] ToByteArray (sbyte[] sbyteArray)
 Converts an array of sbytes to an array of bytes More...
 
static byte [] ToByteArray (System.String sourceString)
 Converts a string to an array of bytes More...
 
static byte [] ToByteArray (System.Object[] tempObjectArray)
 Converts a array of object-type instances to a byte-type array. More...
 
static System.Int32 ReadInput (System.IO.Stream sourceStream, sbyte[] target, int start, int count)
 Reads a number of characters from the current source Stream and writes the data to the target array at the specified index. More...
 
static System.Int32 ReadInput (System.IO.TextReader sourceTextReader, sbyte[] target, int start, int count)
 Reads a number of characters from the current source TextReader and writes the data to the target array at the specified index. More...
 
static long Identity (long literal)
 This method returns the literal value received More...
 
static ulong Identity (ulong literal)
 This method returns the literal value received More...
 
static float Identity (float literal)
 This method returns the literal value received More...
 
static double Identity (double literal)
 This method returns the literal value received More...
 

Detailed Description

Contains conversion support elements such as classes, interfaces and static methods.

Member Function Documentation

◆ Identity() [1/4]

static long SupportClass.Identity ( long  literal)
static

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [2/4]

static ulong SupportClass.Identity ( ulong  literal)
static

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [3/4]

static float SupportClass.Identity ( float  literal)
static

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ Identity() [4/4]

static double SupportClass.Identity ( double  literal)
static

This method returns the literal value received

Parameters
literalThe literal to return
Returns
The received value

◆ ReadInput() [1/2]

static System.Int32 SupportClass.ReadInput ( System.IO.Stream  sourceStream,
sbyte []  target,
int  start,
int  count 
)
static

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

Parameters
sourceStreamThe source Stream to read from.
targetContains the array of characteres read from the source Stream.
startThe starting index of the target array.
countThe maximum number of characters to read from the source Stream.
Returns
The number of characters read. The number will be less than or equal to count depending on the data available in the source Stream. Returns -1 if the end of the stream is reached.

◆ ReadInput() [2/2]

static System.Int32 SupportClass.ReadInput ( System.IO.TextReader  sourceTextReader,
sbyte []  target,
int  start,
int  count 
)
static

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

Parameters
sourceTextReaderThe source TextReader to read from
targetContains the array of characteres read from the source TextReader.
startThe starting index of the target array.
countThe maximum number of characters to read from the source TextReader.
Returns
The number of characters read. The number will be less than or equal to count depending on the data available in the source TextReader. Returns -1 if the end of the stream is reached.

◆ Serialize() [1/2]

static void SupportClass.Serialize ( System.IO.Stream  stream,
System.Object  objectToSend 
)
static

Writes an object to the specified Stream

Parameters
streamThe target Stream
objectToSendThe object to be sent

◆ Serialize() [2/2]

static void SupportClass.Serialize ( System.IO.BinaryWriter  binaryWriter,
System.Object  objectToSend 
)
static

Writes an object to the specified BinaryWriter

Parameters
streamThe target BinaryWriter
objectToSendThe object to be sent

◆ ToByteArray() [1/3]

static byte [] SupportClass.ToByteArray ( sbyte []  sbyteArray)
static

Converts an array of sbytes to an array of bytes

Parameters
sbyteArrayThe array of sbytes to be converted
Returns
The new array of bytes

◆ ToByteArray() [2/3]

static byte [] SupportClass.ToByteArray ( System.String  sourceString)
static

Converts a string to an array of bytes

Parameters
sourceStringThe string to be converted
Returns
The new array of bytes

◆ ToByteArray() [3/3]

static byte [] SupportClass.ToByteArray ( System.Object []  tempObjectArray)
static

Converts a array of object-type instances to a byte-type array.

Parameters
tempObjectArrayArray to convert.
Returns
An array of byte type elements.

◆ URShift() [1/4]

static int SupportClass.URShift ( int  number,
int  bits 
)
static

Performs an unsigned bitwise right shift with the specified number

Parameters
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation

◆ URShift() [2/4]

static int SupportClass.URShift ( int  number,
long  bits 
)
static

Performs an unsigned bitwise right shift with the specified number

Parameters
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation

◆ URShift() [3/4]

static long SupportClass.URShift ( long  number,
int  bits 
)
static

Performs an unsigned bitwise right shift with the specified number

Parameters
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation

◆ URShift() [4/4]

static long SupportClass.URShift ( long  number,
long  bits 
)
static

Performs an unsigned bitwise right shift with the specified number

Parameters
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation

◆ WriteStackTrace()

static void SupportClass.WriteStackTrace ( System.Exception  throwable,
System.IO.TextWriter  stream 
)
static

Writes the exception stack trace to the received stream

Parameters
throwableException to obtain information from
streamOutput sream used to write to