C# Class ModernQR.SystemUtils

Contains conversion support elements such as classes, interfaces and static methods.
Exibir arquivo Open project: jgable/ModernQR

Public Methods

Method Description
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.

ReadInput ( System sourceTextReader, short target, int start, int count ) : Int32

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

ToByteArray ( String sourceString ) : byte[]

Converts a string to an array of bytes

ToByteArray ( System tempObjectArray ) : byte[]

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

ToByteArray ( sbyte sbyteArray ) : byte[]

Converts an array of sbytes to an array of bytes

ToCharArray ( byte byteArray ) : char[]

Converts an array of bytes to an array of chars

ToCharArray ( sbyte sByteArray ) : char[]

Converts an array of sbytes to an array of chars

ToSByteArray ( byte byteArray ) : sbyte[]

Receives a byte array and returns it transformed in an sbyte array

URShift ( int number, int bits ) : int

Performs an unsigned bitwise right shift with the specified number

URShift ( int number, long bits ) : int

Performs an unsigned bitwise right shift with the specified number

URShift ( long number, int bits ) : long

Performs an unsigned bitwise right shift with the specified number

URShift ( long number, long bits ) : long

Performs an unsigned bitwise right shift with the specified number

WriteStackTrace ( System throwable, System stream ) : void

Writes the exception stack trace to the received stream

Method Details

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

ReadInput() public static method

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

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[]

ToByteArray() public static method

Converts a array of object-type instances to a byte-type array.
public static ToByteArray ( System tempObjectArray ) : byte[]
tempObjectArray System Array to convert.
return byte[]

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[]

ToCharArray() public static method

Converts an array of bytes to an array of chars
public static ToCharArray ( byte byteArray ) : char[]
byteArray byte The array of bytes to convert
return char[]

ToCharArray() public static method

Converts an array of sbytes to an array of chars
public static ToCharArray ( sbyte sByteArray ) : char[]
sByteArray sbyte The array of sbytes to convert
return char[]

ToSByteArray() public static method

Receives a byte array and returns it transformed in an sbyte array
public static ToSByteArray ( byte byteArray ) : sbyte[]
byteArray byte Byte array to process
return sbyte[]

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( int number, int bits ) : int
number int Number to operate on
bits int Ammount of bits to shift
return int

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( int number, long bits ) : int
number int Number to operate on
bits long Ammount of bits to shift
return int

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( long number, int bits ) : long
number long Number to operate on
bits int Ammount of bits to shift
return long

URShift() public static method

Performs an unsigned bitwise right shift with the specified number
public static URShift ( long number, long bits ) : long
number long Number to operate on
bits long Ammount of bits to shift
return long

WriteStackTrace() public static method

Writes the exception stack trace to the received stream
public static WriteStackTrace ( System throwable, System stream ) : void
throwable System Exception to obtain information from
stream System Output sream used to write to
return void