FOUND
Loading...
Searching...
No Matches
encoding.hpp File Reference
#include <endian.h>
#include <stdint.h>
#include "common/decimal.hpp"
Include dependency graph for encoding.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  found::_f_u_
 Union for converting a 32-bit floating point number from host byte order to network byte order and vice versa. More...
 
union  found::_d_u_
 Union for converting a 64-bit floating point number from host byte order to network byte order and vice versa. More...
 

Namespaces

namespace  found
 

Macros

#define ENDIANESS   __ORDER_LITTLE_ENDIAN__
 

Functions

uint16_t found::htons (uint16_t v)
 Converts a 16-bit integer from host byte order to network byte order.
 
uint16_t found::ntohs (uint16_t v)
 Converts a 16-bit integer from network byte order to host byte order.
 
uint32_t found::htonl (uint32_t v)
 Converts a 32-bit integer from host byte order to network byte order.
 
uint32_t found::ntohl (uint32_t v)
 Converts a 32-bit integer from network byte order to host byte order.
 
uint64_t found::htonl (uint64_t v)
 Converts a 64-bit integer from host byte order to network byte order.
 
uint64_t found::ntohl (uint64_t v)
 Converts a 64-bit integer from network byte order to host byte order.
 
float found::htonf (float v)
 Converts a float from network byte order to host byte order.
 
float found::ntohf (float v)
 Converts a float from network byte order to host byte order.
 
double found::ntohd (double v)
 Converts a double from network byte order to host byte order.
 
double found::htond (double v)
 Converts a double from host byte order to network byte order.
 
decimal found::htondec (decimal v)
 Converts a decimal from host byte order to network byte order.
 
decimal found::ntohdec (decimal v)
 Converts a decimal from network byte order to host byte order.
 
uint32_t found::calculateCRC32 (const void *data, size_t length)
 Calculates the CRC32 checksum for a given data buffer.
 

Macro Definition Documentation

◆ ENDIANESS

#define ENDIANESS   __ORDER_LITTLE_ENDIAN__