lsst.sphgeom 22.0.1-8-gfb2c8f9+1b4e7dc7c0
|
This file contains simple helper functions for encoding and decoding primitive types to/from byte strings. More...
#include <vector>
Go to the source code of this file.
Functions | |
void | lsst::sphgeom::encodeDouble (double item, std::vector< uint8_t > &buffer) |
double | lsst::sphgeom::decodeDouble (uint8_t const *buffer) |
This file contains simple helper functions for encoding and decoding primitive types to/from byte strings.
|
inline |
decode
extracts an IEEE double from the 8 byte little-endian byte sequence in buffer.
|
inline |
encode
appends an IEEE double in little-endian byte order to the end of buffer.