Ada 3.4.0
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 <string>
15
22namespace ada::serializers {
23
33 const std::array<uint16_t, 8>& address, size_t& compress,
34 size_t& compress_length) noexcept;
35
43std::string ipv6(const std::array<uint16_t, 8>& address) noexcept;
44
52std::string ipv4(uint64_t address) noexcept;
53
54} // namespace ada::serializers
55
56#endif // ADA_SERIALIZERS_H
Cross-platform compiler macros and common definitions.
IP address serialization functions.
std::string ipv6(const std::array< uint16_t, 8 > &address) noexcept
void find_longest_sequence_of_ipv6_pieces(const std::array< uint16_t, 8 > &address, size_t &compress, size_t &compress_length) noexcept
std::string ipv4(uint64_t address) noexcept