CodePorting.Translator.Cs2Cpp.Framework
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...

#include <bit_converter_le.h>

Static Public Member Functions

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