Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Functions
mastercore_convert.h File Reference
#include <stdint.h>
+ Include dependency graph for mastercore_convert.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mastercore
 

Macros

#define PUSH_BACK_BYTES(vector, value)
 Pushes bytes to the end of a vector. More...
 
#define PUSH_BACK_BYTES_PTR(vector, ptr, size)
 Pushes bytes to the end of a vector based on a pointer. More...
 

Functions

uint64_t mastercore::rounduint64 (long double)
 Converts numbers to 64 bit wide unsigned integer whereby any signedness is ignored. More...
 
void mastercore::swapByteOrder16 (uint16_t &)
 Swaps byte order on little-endian systems and does nothing otherwise. More...
 
void mastercore::swapByteOrder32 (uint32_t &ui)
 
void mastercore::swapByteOrder64 (uint64_t &ull)
 

Macro Definition Documentation

#define PUSH_BACK_BYTES (   vector,
  value 
)
Value:
vector.insert(vector.end(), reinterpret_cast<unsigned char *>(&(value)),\
reinterpret_cast<unsigned char *>(&(value)) + sizeof((value)));

Pushes bytes to the end of a vector.

Definition at line 28 of file mastercore_convert.h.

Referenced by mastercore::send_INTERNAL_1packet().

#define PUSH_BACK_BYTES_PTR (   vector,
  ptr,
  size 
)
Value:
vector.insert(vector.end(), reinterpret_cast<unsigned char *>((ptr)),\
reinterpret_cast<unsigned char *>((ptr)) + (size));

Pushes bytes to the end of a vector based on a pointer.

Definition at line 35 of file mastercore_convert.h.