C# Class hds.NumericalUtils

Mostrar archivo Open project: hdneo/mxo-hd Class Usage Examples

Public Methods

Method Description
ByteArrayToUint16 ( byte data, int reversed ) : UInt16
ByteArrayToUint32 ( byte data, int reversed ) : UInt32
LtVector3dToDoubles ( byte LtVector3d, double &x, double &y, double &z ) : void
LtVector3fToFloats ( byte LtVector3f, float &x, float &y, float &z ) : void
bigBinaryStringToBytes ( string bigBinaryStr ) : byte[]
binaryStringToInt ( string binaryStr ) : int
byteArrayToDouble ( byte array, int reversed ) : double
byteArrayToFloat ( byte array, int reversed ) : float
byteToBitArray ( byte input ) : BitArray
doubleToByteArray ( double n, int reversed ) : byte[]
doublesToLtVector3d ( double x, double y, double z ) : byte[]
floatToByteArray ( float n, int reversed ) : byte[]
floatsToLtVector3f ( float x, float y, float z ) : byte[]
int32ToByteArray ( Int32 data, int reversed ) : byte[]
intToBitsString ( int n, int bitsSize ) : string
reverse2ByteArray ( byte res ) : void
reverse4ByteArray ( byte res ) : void
uint16ToByteArray ( UInt16 data, int reversed ) : byte[]
uint16ToByteArrayShort ( UInt16 data ) : byte[]
uint32ToByteArray ( UInt32 data, int reversed ) : byte[]

Method Details

ByteArrayToUint16() public static method

public static ByteArrayToUint16 ( byte data, int reversed ) : UInt16
data byte
reversed int
return System.UInt16

ByteArrayToUint32() public static method

public static ByteArrayToUint32 ( byte data, int reversed ) : UInt32
data byte
reversed int
return System.UInt32

LtVector3dToDoubles() public static method

public static LtVector3dToDoubles ( byte LtVector3d, double &x, double &y, double &z ) : void
LtVector3d byte
x double
y double
z double
return void

LtVector3fToFloats() public static method

public static LtVector3fToFloats ( byte LtVector3f, float &x, float &y, float &z ) : void
LtVector3f byte
x float
y float
z float
return void

bigBinaryStringToBytes() public static method

public static bigBinaryStringToBytes ( string bigBinaryStr ) : byte[]
bigBinaryStr string
return byte[]

binaryStringToInt() public static method

public static binaryStringToInt ( string binaryStr ) : int
binaryStr string
return int

byteArrayToDouble() public static method

public static byteArrayToDouble ( byte array, int reversed ) : double
array byte
reversed int
return double

byteArrayToFloat() public static method

public static byteArrayToFloat ( byte array, int reversed ) : float
array byte
reversed int
return float

byteToBitArray() public static method

public static byteToBitArray ( byte input ) : BitArray
input byte
return System.Collections.BitArray

doubleToByteArray() public static method

public static doubleToByteArray ( double n, int reversed ) : byte[]
n double
reversed int
return byte[]

doublesToLtVector3d() public static method

public static doublesToLtVector3d ( double x, double y, double z ) : byte[]
x double
y double
z double
return byte[]

floatToByteArray() public static method

public static floatToByteArray ( float n, int reversed ) : byte[]
n float
reversed int
return byte[]

floatsToLtVector3f() public static method

public static floatsToLtVector3f ( float x, float y, float z ) : byte[]
x float
y float
z float
return byte[]

int32ToByteArray() public static method

public static int32ToByteArray ( Int32 data, int reversed ) : byte[]
data System.Int32
reversed int
return byte[]

intToBitsString() public static method

public static intToBitsString ( int n, int bitsSize ) : string
n int
bitsSize int
return string

reverse2ByteArray() public static method

public static reverse2ByteArray ( byte res ) : void
res byte
return void

reverse4ByteArray() public static method

public static reverse4ByteArray ( byte res ) : void
res byte
return void

uint16ToByteArray() public static method

public static uint16ToByteArray ( UInt16 data, int reversed ) : byte[]
data System.UInt16
reversed int
return byte[]

uint16ToByteArrayShort() public static method

public static uint16ToByteArrayShort ( UInt16 data ) : byte[]
data System.UInt16
return byte[]

uint32ToByteArray() public static method

public static uint32ToByteArray ( UInt32 data, int reversed ) : byte[]
data System.UInt32
reversed int
return byte[]