proxygen
|
#include <Bits.h>
Public Types | |
enum | Order : uint8_t { Order::LITTLE, Order::BIG } |
Static Public Member Functions | |
template<class T > | |
static T | swap (T x) |
template<class T > | |
static T | big (T x) |
template<class T > | |
static T | little (T x) |
static uint64_t | swap64 (uint64_t x) |
static uint64_t | big64 (uint64_t x) |
static uint64_t | little64 (uint64_t x) |
static int64_t | swap64 (int64_t x) |
static int64_t | big64 (int64_t x) |
static int64_t | little64 (int64_t x) |
static uint32_t | swap32 (uint32_t x) |
static uint32_t | big32 (uint32_t x) |
static uint32_t | little32 (uint32_t x) |
static int32_t | swap32 (int32_t x) |
static int32_t | big32 (int32_t x) |
static int32_t | little32 (int32_t x) |
static uint16_t | swap16 (uint16_t x) |
static uint16_t | big16 (uint16_t x) |
static uint16_t | little16 (uint16_t x) |
static int16_t | swap16 (int16_t x) |
static int16_t | big16 (int16_t x) |
static int16_t | little16 (int16_t x) |
static uint8_t | swap8 (uint8_t x) |
static uint8_t | big8 (uint8_t x) |
static uint8_t | little8 (uint8_t x) |
static int8_t | swap8 (int8_t x) |
static int8_t | big8 (int8_t x) |
static int8_t | little8 (int8_t x) |
Static Public Attributes | |
static constexpr Order | order = kIsLittleEndian ? Order::LITTLE : Order::BIG |
|
strong |
Definition at line 259 of file Bits.h.
References folly::detail::EndianInt< T >::big().
Referenced by fizz::OpenSSLEVPCipher< EVPImpl >::createIV(), fizz::enumToHex(), folly::IPAddressV4::fetchMask(), folly::IPAddressV6::fetchMask(), folly::MacAddress::fromHBO(), folly::AsyncServerSocket::handlerReady(), folly::io::detail::CursorBase< Cursor, const IOBuf >::readBE(), fizz::detail::readBits24(), TEST(), testMAC(), folly::io::detail::CursorBase< Cursor, const IOBuf >::tryReadBE(), folly::MacAddress::u64HBO(), folly::io::detail::Writable< Appender >::writeBE(), and fizz::detail::writeBits24().
Definition at line 263 of file Bits.h.
References folly::detail::EndianInt< T >::little().
Referenced by get4BytesValue(), getAddr(), folly::io::compression::detail::prefixToStringLE(), folly::io::detail::CursorBase< Cursor, const IOBuf >::readLE(), folly::io::detail::CursorBase< Cursor, const IOBuf >::tryReadLE(), and folly::io::detail::Writable< Appender >::writeLE().
Definition at line 255 of file Bits.h.
References folly::detail::EndianInt< T >::swap().
Referenced by folly::bitReverse(), and TEST().
|
static |