Class SupportClass
- Namespace
- ZXing
- Assembly
- zxing.dll
Contains conversion support elements such as classes, interfaces and static methods.
public static class SupportClass
- Inheritance
-
SupportClass
- Inherited Members
Methods
Fill<T>(T[], int, int, T)
Fills the specified array. (can't use extension method because of .Net 2.0 support)
public static void Fill<T>(T[] array, int startIndex, int endIndex, T value)
Parameters
Type Parameters
T
Fill<T>(T[], T)
Fills the specified array. (can't use extension method because of .Net 2.0 support)
public static void Fill<T>(T[] array, T value)
Parameters
array
T[]The array.
value
TThe value.
Type Parameters
T
GetCharsFromString(string, int, int, char[], int)
Copies an array of chars obtained from a String into a specified array of chars
public static void GetCharsFromString(string sourceString, int sourceStart, int sourceEnd, char[] destinationArray, int destinationStart)
Parameters
sourceString
stringThe String to get the chars from
sourceStart
intPosition of the String to start getting the chars
sourceEnd
intPosition of the String to end getting the chars
destinationArray
char[]Array to return the chars
destinationStart
intPosition of the destination array of chars to start storing the chars
GetValue<T>(IDictionary<DecodeHintType, object>, DecodeHintType, T)
Savely gets the value of a decoding hint if hints is null the default is returned
public static T GetValue<T>(IDictionary<DecodeHintType, object> hints, DecodeHintType hintType, T @default)
Parameters
hints
IDictionary<DecodeHintType, object>The hints.
hintType
DecodeHintTypeType of the hint.
default
TThe @default.
Returns
- T
Type Parameters
T
Join<T>(string, IEnumerable<T>)
Joins all elements to one string.
public static string Join<T>(string separator, IEnumerable<T> values)
Parameters
separator
stringThe separator.
values
IEnumerable<T>The values.
Returns
Type Parameters
T
SetCapacity<T>(IList<T>, int)
Sets the capacity for the specified List
public static void SetCapacity<T>(IList<T> vector, int newCapacity) where T : new()
Parameters
Type Parameters
T
ToBinaryString(int)
public static string ToBinaryString(int x)
Parameters
x
int
Returns
bitCount(int)
public static int bitCount(int n)
Parameters
n
int
Returns
toStringArray(ICollection<string>)
Converts a string-Collection to an array
public static string[] toStringArray(ICollection<string> strings)
Parameters
strings
ICollection<string>The strings.
Returns
- string[]