LOST 0.0.1
LOST: Open-source Star Tracker
Loading...
Searching...
No Matches
serialize-helpers.hpp File Reference
#include <string.h>
#include <utility>
#include <vector>
#include <algorithm>
#include "decimal.hpp"
Include dependency graph for serialize-helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lost::SerializeContext
 
class  lost::DeserializeContext
 

Namespaces

namespace  lost
 LOST starting point.
 

Functions

template<typename T >
void lost::SwapEndianness (unsigned char *buffer)
 Unconditionally swap the endianness of a value (uses sizeof T).
 
template<typename T >
void lost::SwapEndiannessIfNecessary (unsigned char *buffer, SerializeContext *ser)
 Swap the endianness of a value if necessary.
 
template<>
void lost::SwapEndiannessIfNecessary< decimal > (unsigned char *buffer, SerializeContext *ser)
 
template<typename T >
void lost::DeserializePadding (DeserializeContext *des)
 Move the cursor forward past any padding that would appear before a value of type T.
 
template<typename T >
T lost::DeserializePrimitive (DeserializeContext *des)
 
template<typename T >
const Tlost::DeserializeArray (DeserializeContext *des, long arrLength)
 return an array of items as a pointer. Will point into the buffer (mmap style).
 
template<typename T >
void lost::SerializePadding (SerializeContext *ser)
 
template<typename T >
void lost::SerializePrimitive (SerializeContext *ser, const T &val)