C# Класс hds.NumericalUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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[]

Описание методов

ByteArrayToUint16() публичный статический Метод

public static ByteArrayToUint16 ( byte data, int reversed ) : UInt16
data byte
reversed int
Результат System.UInt16

ByteArrayToUint32() публичный статический Метод

public static ByteArrayToUint32 ( byte data, int reversed ) : UInt32
data byte
reversed int
Результат System.UInt32

LtVector3dToDoubles() публичный статический Метод

public static LtVector3dToDoubles ( byte LtVector3d, double &x, double &y, double &z ) : void
LtVector3d byte
x double
y double
z double
Результат void

LtVector3fToFloats() публичный статический Метод

public static LtVector3fToFloats ( byte LtVector3f, float &x, float &y, float &z ) : void
LtVector3f byte
x float
y float
z float
Результат void

bigBinaryStringToBytes() публичный статический Метод

public static bigBinaryStringToBytes ( string bigBinaryStr ) : byte[]
bigBinaryStr string
Результат byte[]

binaryStringToInt() публичный статический Метод

public static binaryStringToInt ( string binaryStr ) : int
binaryStr string
Результат int

byteArrayToDouble() публичный статический Метод

public static byteArrayToDouble ( byte array, int reversed ) : double
array byte
reversed int
Результат double

byteArrayToFloat() публичный статический Метод

public static byteArrayToFloat ( byte array, int reversed ) : float
array byte
reversed int
Результат float

byteToBitArray() публичный статический Метод

public static byteToBitArray ( byte input ) : BitArray
input byte
Результат System.Collections.BitArray

doubleToByteArray() публичный статический Метод

public static doubleToByteArray ( double n, int reversed ) : byte[]
n double
reversed int
Результат byte[]

doublesToLtVector3d() публичный статический Метод

public static doublesToLtVector3d ( double x, double y, double z ) : byte[]
x double
y double
z double
Результат byte[]

floatToByteArray() публичный статический Метод

public static floatToByteArray ( float n, int reversed ) : byte[]
n float
reversed int
Результат byte[]

floatsToLtVector3f() публичный статический Метод

public static floatsToLtVector3f ( float x, float y, float z ) : byte[]
x float
y float
z float
Результат byte[]

int32ToByteArray() публичный статический Метод

public static int32ToByteArray ( Int32 data, int reversed ) : byte[]
data System.Int32
reversed int
Результат byte[]

intToBitsString() публичный статический Метод

public static intToBitsString ( int n, int bitsSize ) : string
n int
bitsSize int
Результат string

reverse2ByteArray() публичный статический Метод

public static reverse2ByteArray ( byte res ) : void
res byte
Результат void

reverse4ByteArray() публичный статический Метод

public static reverse4ByteArray ( byte res ) : void
res byte
Результат void

uint16ToByteArray() публичный статический Метод

public static uint16ToByteArray ( UInt16 data, int reversed ) : byte[]
data System.UInt16
reversed int
Результат byte[]

uint16ToByteArrayShort() публичный статический Метод

public static uint16ToByteArrayShort ( UInt16 data ) : byte[]
data System.UInt16
Результат byte[]

uint32ToByteArray() публичный статический Метод

public static uint32ToByteArray ( UInt32 data, int reversed ) : byte[]
data System.UInt32
reversed int
Результат byte[]