proxygen
|
#include <IPAddressSource.h>
Static Public Member Functions | |
template<std::size_t N> | |
static std::array< uint8_t, N > | mask (const std::array< uint8_t, N > &a, const std::array< uint8_t, N > &b) |
template<std::size_t N> | |
static std::pair< std::array< uint8_t, N >, uint8_t > | longestCommonPrefix (const std::array< uint8_t, N > &one, uint8_t oneMask, const std::array< uint8_t, N > &two, uint8_t twoMask) |
static in_addr | mkAddress4 (const uint8_t *src) |
static in6_addr | mkAddress6 (const uint8_t *src) |
static std::string | toHex (const uint8_t *src, std::size_t len) |
Private Member Functions | |
Bytes ()=delete | |
~Bytes ()=delete | |
Helper for working with unsigned char* or uint8_t* ByteArray values
Definition at line 44 of file IPAddressSource.h.
|
privatedelete |
Referenced by toHex().
|
privatedelete |
Referenced by toHex().
|
inlinestatic |
Definition at line 60 of file IPAddressSource.h.
References mask(), max, min, folly::sformat(), and uint8_t.
Referenced by folly::IPAddressV4::longestCommonPrefix(), and folly::IPAddressV6::longestCommonPrefix().
|
inlinestatic |
Definition at line 47 of file IPAddressSource.h.
Referenced by folly::IPAddressV4::inSubnetWithMask(), folly::IPAddressV6::inSubnetWithMask(), longestCommonPrefix(), folly::IPAddressV4::mask(), and folly::IPAddressV6::mask().
|
inlinestatic |
Definition at line 113 of file IPAddressSource.h.
Referenced by folly::IPAddressV6::createIPv4(), and TEST_P().
|
inlinestatic |
|
inlinestatic |
Definition at line 132 of file IPAddressSource.h.
References Bytes(), c, i, string, type, value, and ~Bytes().
Referenced by folly::IPAddressV6::str(), TEST(), and folly::toAppend().