#include <netaddress.h>
#include <crypto/common.h>
#include <crypto/sha3.h>
#include <hash.h>
#include <prevector.h>
#include <tinyformat.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <algorithm>
#include <array>
#include <cstdint>
#include <ios>
#include <iterator>
#include <string_view>
#include <tuple>
Go to the source code of this file.
|
| static void | torv3::Checksum (std::span< const uint8_t > addr_pubkey, uint8_t(&checksum)[CHECKSUM_LEN]) |
| static std::string | IPv4ToString (std::span< const uint8_t > a) |
| static std::string | IPv6ToString (std::span< const uint8_t > a, uint32_t scope_id) |
| std::string | OnionToString (std::span< const uint8_t > addr) |
| bool | operator== (const CNetAddr &a, const CNetAddr &b) |
| bool | operator< (const CNetAddr &a, const CNetAddr &b) |
| static int | GetExtNetwork (const CNetAddr &addr) |
| bool | operator== (const CService &a, const CService &b) |
| bool | operator< (const CService &a, const CService &b) |
| static int | NetmaskBits (uint8_t x) |
| bool | operator== (const CSubNet &a, const CSubNet &b) |
| bool | operator< (const CSubNet &a, const CSubNet &b) |
| bool | ContainsNoNUL (std::string_view str) noexcept |
| | Check if a string does not contain any embedded NUL (\0) characters.
|
| template<typename T1, size_t PREFIX_LEN> |
| bool | HasPrefix (const T1 &obj, const std::array< uint8_t, PREFIX_LEN > &prefix) |
| | Check whether a container begins with the given prefix.
|
◆ ContainsNoNUL()
Check if a string does not contain any embedded NUL (\0) characters.
Definition at line 234 of file string.h.
◆ GetExtNetwork()
| int GetExtNetwork |
( |
const CNetAddr & | addr | ) |
|
|
static |
◆ HasPrefix()
template<typename T1, size_t PREFIX_LEN>
| bool util::HasPrefix |
( |
const T1 & | obj, |
|
|
const std::array< uint8_t, PREFIX_LEN > & | prefix ) |
|
inlinenodiscard |
Check whether a container begins with the given prefix.
Definition at line 258 of file string.h.
◆ IPv4ToString()
| std::string IPv4ToString |
( |
std::span< const uint8_t > | a | ) |
|
|
static |
◆ IPv6ToString()
| std::string IPv6ToString |
( |
std::span< const uint8_t > | a, |
|
|
uint32_t | scope_id ) |
|
static |
◆ NetmaskBits()
| int NetmaskBits |
( |
uint8_t | x | ) |
|
|
inlinestatic |
- Returns
- The number of 1-bits in the prefix of the specified subnet mask. If the specified subnet mask is not a valid one, -1.
Definition at line 945 of file netaddress.cpp.
◆ OnionToString()
| std::string OnionToString |
( |
std::span< const uint8_t > | addr | ) |
|
◆ operator<() [1/3]
◆ operator<() [2/3]
◆ operator<() [3/3]
◆ operator==() [1/3]
◆ operator==() [2/3]
◆ operator==() [3/3]
◆ NET_TEREDO