Ada 2.8.0
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
serializers.h
Go to the documentation of this file.
1
5#ifndef ADA_SERIALIZERS_H
6#define ADA_SERIALIZERS_H
7
8#include "ada/common_defs.h"
9
10#include <array>
11#include <optional>
12#include <string>
13
18namespace ada::serializers {
19
24 const std::array<uint16_t, 8>& address, size_t& compress,
25 size_t& compress_length) noexcept;
26
33std::string ipv6(const std::array<uint16_t, 8>& address) noexcept;
34
41std::string ipv4(uint64_t address) noexcept;
42
43} // namespace ada::serializers
44
45#endif // ADA_SERIALIZERS_H
Common definitions for cross-platform compiler support.
Includes the definitions for URL serializers.
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