Asposecpplib
Mono::Security::BitConverterLE Class Reference

Bit converter implementation that works with little endian representation. This is a static type with no instance services. You should never create instances of it by any means. More...

Static Public Member Functions

static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (bool value)
 Gets byte representation of boolean. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (char_t value)
 Gets byte representation of char. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (int16_t value)
 Gets byte representation of short int. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (int value)
 Gets byte representation of integer. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (int64_t value)
 Gets byte representation of long long. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (uint16_t value)
 Gets byte representation of unsigned short. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (uint32_t value)
 Gets byte representation of unsigned integer. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (uint64_t value)
 Gets byte representation of unsigned long long. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (float value)
 Gets byte representation of single precision float. More...
 
static ASPOSECPP_SHARED_API System::ArrayPtr< uint8_t > GetBytes (double value)
 Gets byte representation of double precision float. More...
 
static ASPOSECPP_SHARED_API bool ToBoolean (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to boolean. More...
 
static ASPOSECPP_SHARED_API char_t ToChar (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to char. More...
 
static ASPOSECPP_SHARED_API int16_t ToInt16 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to short. More...
 
static ASPOSECPP_SHARED_API int ToInt32 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to integer. More...
 
static ASPOSECPP_SHARED_API int64_t ToInt64 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to long long. More...
 
static ASPOSECPP_SHARED_API uint16_t ToUInt16 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to unsigned short. More...
 
static ASPOSECPP_SHARED_API uint32_t ToUInt32 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to unsigned integer. More...
 
static ASPOSECPP_SHARED_API uint64_t ToUInt64 (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to unsigned long long. More...
 
static ASPOSECPP_SHARED_API float ToSingle (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to single precision float. More...
 
static ASPOSECPP_SHARED_API double ToDouble (const System::ArrayPtr< uint8_t > &value, int startIndex)
 Converts byte representation to double precision float. More...
 

Detailed Description

Bit converter implementation that works with little endian representation. This is a static type with no instance services. You should never create instances of it by any means.

Member Function Documentation

◆ GetBytes() [1/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( bool  value)
static

Gets byte representation of boolean.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [2/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( char_t  value)
static

Gets byte representation of char.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [3/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( double  value)
static

Gets byte representation of double precision float.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [4/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( float  value)
static

Gets byte representation of single precision float.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [5/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( int  value)
static

Gets byte representation of integer.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [6/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( int16_t  value)
static

Gets byte representation of short int.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [7/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( int64_t  value)
static

Gets byte representation of long long.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [8/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( uint16_t  value)
static

Gets byte representation of unsigned short.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [9/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( uint32_t  value)
static

Gets byte representation of unsigned integer.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ GetBytes() [10/10]

static ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> Mono::Security::BitConverterLE::GetBytes ( uint64_t  value)
static

Gets byte representation of unsigned long long.

Parameters
valueValue to get bytes from.
Returns
Array containing bytes of value.

◆ ToBoolean()

static ASPOSECPP_SHARED_API bool Mono::Security::BitConverterLE::ToBoolean ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to boolean.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToChar()

static ASPOSECPP_SHARED_API char_t Mono::Security::BitConverterLE::ToChar ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to char.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToDouble()

static ASPOSECPP_SHARED_API double Mono::Security::BitConverterLE::ToDouble ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to double precision float.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToInt16()

static ASPOSECPP_SHARED_API int16_t Mono::Security::BitConverterLE::ToInt16 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to short.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToInt32()

static ASPOSECPP_SHARED_API int Mono::Security::BitConverterLE::ToInt32 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to integer.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToInt64()

static ASPOSECPP_SHARED_API int64_t Mono::Security::BitConverterLE::ToInt64 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to long long.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToSingle()

static ASPOSECPP_SHARED_API float Mono::Security::BitConverterLE::ToSingle ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to single precision float.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToUInt16()

static ASPOSECPP_SHARED_API uint16_t Mono::Security::BitConverterLE::ToUInt16 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to unsigned short.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToUInt32()

static ASPOSECPP_SHARED_API uint32_t Mono::Security::BitConverterLE::ToUInt32 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to unsigned integer.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.

◆ ToUInt64()

static ASPOSECPP_SHARED_API uint64_t Mono::Security::BitConverterLE::ToUInt64 ( const System::ArrayPtr< uint8_t > &  value,
int  startIndex 
)
static

Converts byte representation to unsigned long long.

Parameters
valueInput bytes array.
startIndexStart index in input array.
Returns
Converted value.