2#ifndef __BitConverterLE_h__
3#define __BitConverterLE_h__
5#include "system/array.h"
8namespace Mono {
namespace Security {
Bit converter implementation that works with little endian representation. This is a static type with...
Definition: bit_converter_le.h:14
static System::ArrayPtr< uint8_t > GetBytes(int value)
Gets byte representation of integer.
static System::ArrayPtr< uint8_t > GetBytes(uint64_t value)
Gets byte representation of unsigned long long.
static char_t ToChar(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to char.
static int64_t ToInt64(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to long long.
static uint32_t ToUInt32(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to unsigned integer.
static System::ArrayPtr< uint8_t > GetBytes(uint32_t value)
Gets byte representation of unsigned integer.
static System::ArrayPtr< uint8_t > GetBytes(bool value)
Gets byte representation of boolean.
static System::ArrayPtr< uint8_t > GetBytes(char_t value)
Gets byte representation of char.
static System::ArrayPtr< uint8_t > GetBytes(float value)
Gets byte representation of single precision float.
static int ToInt32(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to integer.
static int16_t ToInt16(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to short.
static System::ArrayPtr< uint8_t > GetBytes(double value)
Gets byte representation of double precision float.
static bool ToBoolean(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to boolean.
static float ToSingle(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to single precision float.
static System::ArrayPtr< uint8_t > GetBytes(int64_t value)
Gets byte representation of long long.
static uint16_t ToUInt16(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to unsigned short.
static uint64_t ToUInt64(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to unsigned long long.
static System::ArrayPtr< uint8_t > GetBytes(uint16_t value)
Gets byte representation of unsigned short.
static System::ArrayPtr< uint8_t > GetBytes(int16_t value)
Gets byte representation of short int.
static double ToDouble(const System::ArrayPtr< uint8_t > &value, int startIndex)
Converts byte representation to double precision float.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: bit_converter_le.h:8