Ada 2.9.2
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 <string>
12
17namespace ada::serializers {
18
23 const std::array<uint16_t, 8>& address, size_t& compress,
24 size_t& compress_length) noexcept;
25
32std::string ipv6(const std::array<uint16_t, 8>& address) noexcept;
33
40std::string ipv4(uint64_t address) noexcept;
41
42} // namespace ada::serializers
43
44#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