Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
serializers.h
Go to the documentation of this file.
1
8#ifndef ADA_SERIALIZERS_H
9#define ADA_SERIALIZERS_H
10
11#include "ada/common_defs.h"
12
13#include <array>
14#include <cstddef>
15#include <cstdint>
16#include <string>
17
24namespace ada::serializers {
25
35 const std::array<uint16_t, 8>& address, size_t& compress,
36 size_t& compress_length) noexcept;
37
45std::string ipv6(const std::array<uint16_t, 8>& address);
46
54std::string ipv4(uint64_t address);
55
56} // namespace ada::serializers
57
58#endif // ADA_SERIALIZERS_H
Cross-platform compiler macros and common definitions.
IP address serialization functions.
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)