Class DataConversion
- Namespace
- NominalSystems.External
- Assembly
- NominalSystems.External.dll
A static class for converting a data form to another
public static class DataConversion
- Inheritance
-
DataConversion
Methods
BytesToDouble(byte[])
Called to create a Double from eight Bytes
public static double BytesToDouble(byte[] bytes)
Parameters
bytes
byte[]The Byte array to convert to a Double
Returns
- double
The created Double
BytesToFloat(byte[])
Called to create a Float from four Bytes
public static float BytesToFloat(byte[] bytes)
Parameters
bytes
byte[]The Byte array to convert to a Float
Returns
- float
The created Float
BytesToInt(byte[])
Called to create an Integer from four Bytes
public static int BytesToInt(byte[] bytes)
Parameters
bytes
byte[]The Byte array to convert to an Integer
Returns
- int
The created Integer
CharToInt(char)
Called to convert a Char to an Integer
public static int CharToInt(char charVal)
Parameters
charVal
charThe Char to convert
Returns
- int
The converted Char as an Integer
DoubleToBytes(double)
Called to convert a Double to a Byte array
public static byte[] DoubleToBytes(double doubleVal)
Parameters
doubleVal
doubleThe Double to convert
Returns
- byte[]
The Byte array
FloatToBytes(float)
Called to convert an Float to a Byte array
public static byte[] FloatToBytes(float floatVal)
Parameters
floatVal
floatThe Float to convert
Returns
- byte[]
The Byte array
IntToBytes(int)
Called to convert an Integer to a Byte array
public static byte[] IntToBytes(int intVal)
Parameters
intVal
intThe Integer to convert
Returns
- byte[]
The Byte array
IntToChar(int)
Called to convert an Integer to a Char.
public static char IntToChar(int intVal)
Parameters
intVal
intThe Integer to convert
Returns
- char
The converted Integer as a Char
IntsToString(int[])
Called to convert an array of Integers to a String
public static string IntsToString(int[] intVals)
Parameters
intVals
int[]The Integer array to convert
Returns
- string
The converted Integer array as a String
StringToInts(string)
Called to convert a String to an array of Integers
public static int[] StringToInts(string stringVal)
Parameters
stringVal
stringThe String to convert
Returns
- int[]
The converted String as an Integer array