C# Class zxingwp7.SupportClass

Contains conversion support elements such as classes, interfaces and static methods.
Mostra file Open project: henningms/zxing2.0-wp7

Public Methods

Method Description
GetCharsFromString ( String sourceString, int sourceStart, int sourceEnd, char destinationArray, int destinationStart ) : void

Copies an array of chars obtained from a String into a specified array of chars

Identity ( double literal ) : double

This method returns the literal value received

Identity ( float literal ) : float

This method returns the literal value received

Identity ( long literal ) : long

This method returns the literal value received

Identity ( ulong literal ) : ulong

This method returns the literal value received

SetCapacity ( List vector, int newCapacity ) : void

Sets the capacity for the specified ArrayList

ToByteArray ( Object tempObjectArray ) : byte[]

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

ToByteArray ( String sourceString ) : byte[]

Converts a string to an array of bytes

ToByteArray ( sbyte sbyteArray ) : byte[]

Converts an array of sbytes to an array of bytes

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

Method Details

GetCharsFromString() public static method

Copies an array of chars obtained from a String into a specified array of chars
public static GetCharsFromString ( String sourceString, int sourceStart, int sourceEnd, char destinationArray, int destinationStart ) : void
sourceString String The String to get the chars from
sourceStart int Position of the String to start getting the chars
sourceEnd int Position of the String to end getting the chars
destinationArray char Array to return the chars
destinationStart int Position of the destination array of chars to start storing the chars
return void

Identity() public static method

This method returns the literal value received
public static Identity ( double literal ) : double
literal double The literal to return
return double

Identity() public static method

This method returns the literal value received
public static Identity ( float literal ) : float
literal float The literal to return
return float

Identity() public static method

This method returns the literal value received
public static Identity ( long literal ) : long
literal long The literal to return
return long

Identity() public static method

This method returns the literal value received
public static Identity ( ulong literal ) : ulong
literal ulong The literal to return
return ulong

SetCapacity() public static method

Sets the capacity for the specified ArrayList
public static SetCapacity ( List vector, int newCapacity ) : void
vector List The ArrayList which capacity will be set
newCapacity int The new capacity value
return void

ToByteArray() public static method

Converts a array of object-type instances to a byte-type array.
public static ToByteArray ( Object tempObjectArray ) : byte[]
tempObjectArray Object Array to convert.
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[]

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

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