Loading...
Searching...
No Matches
serializers.h
Go to the documentation of this file.
#ifndef ADA_SERIALIZERS_H
#define ADA_SERIALIZERS_H
#include "ada/common_defs.h"
#include <array>
#include <string>
namespace ada::serializers {
void find_longest_sequence_of_ipv6_pieces(
const std::array<uint16_t, 8>& address, size_t& compress,
size_t& compress_length) noexcept;
std::string ipv6(const std::array<uint16_t, 8>& address);
std::string ipv4(uint64_t address);
} // namespace ada::serializers
#endif // ADA_SERIALIZERS_H
common_defs.h
Cross-platform compiler macros and common definitions.
ada::serializers
IP address serialization functions.
ada::serializers::find_longest_sequence_of_ipv6_pieces
void find_longest_sequence_of_ipv6_pieces(const std::array< uint16_t, 8 > &address, size_t &compress, size_t &compress_length) noexcept
Definition serializers.cpp:7
ada::serializers::ipv6
std::string ipv6(const std::array< uint16_t, 8 > &address)
Definition serializers.cpp:25
ada::serializers::ipv4
std::string ipv4(uint64_t address)
Definition serializers.cpp:66