20 #include <ripple/protocol/LedgerHeader.h>
An immutable linear range of bytes.
constexpr value_type drops() const
Returns the number of drops.
int add8(unsigned char i)
int add64(std::uint64_t i)
T time_since_epoch(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
int addBitString(base_uint< Bits, Tag > const &v)
void addRaw(LedgerHeader const &info, Serializer &s, bool includeHash)
LedgerHeader deserializePrefixedHeader(Slice data, bool hasHash)
Deserialize a ledger header (prefixed with 4 bytes) from a byte array.
LedgerHeader deserializeHeader(Slice data, bool hasHash)
Deserialize a ledger header from a byte array.
int add32(std::uint32_t i)