Wolframe, 0.0.3

numberBaseConversion.hpp File Reference

Private interface for big number conversions from decimal to binary represention and back. More...

#include "types/integer.hpp"
#include <string>

Go to the source code of this file.

Classes

struct  _Wolframe::types::Endian
 Class for little/big endian operations. More...
 

Namespaces

 _Wolframe
 Toplevel Wolframe namespace.
 
 _Wolframe::types
 Basic data types (implemented in the core library libwolframe)
 

Functions

unsigned int _Wolframe::types::convertBinaryToBCD (const unsigned char *uintptr, unsigned int uintsize, unsigned char *digitsbuf, unsigned int digitsbufsize)
 Convert a large but limited size big endian integer value to a BCD number. More...
 
void _Wolframe::types::convertBCDtoBinary (const unsigned char *digits, unsigned int nofdigits, unsigned char *buf, unsigned int bufsize)
 Convert a large but limited size BCD number to a big endian integer value. More...
 
template<typename UINTTYPE >
unsigned int _Wolframe::types::convertBigEndianUintToBCD (const UINTTYPE &val, unsigned char *digitsbuf, unsigned int digitsbufsize)
 Convert a large but limited size big endian integer value to a BCD number. More...
 
template<typename UINTTYPE >
void _Wolframe::types::convertBCDtoBigEndianUint (const unsigned char *digits, unsigned int nofdigits, UINTTYPE &val)
 Convert a large but limited size BCD number to a big endian integer value. More...
 

Detailed Description

Private interface for big number conversions from decimal to binary represention and back.