Everett
Loading...
Searching...
No Matches
Functions | Variables
everett::file_detail Namespace Reference

Functions

std::uint64_t get (std::span< std::byte const > bytes, std::size_t at, unsigned width) noexcept
 
void put (std::span< std::byte > bytes, std::size_t at, unsigned width, std::uint64_t value) noexcept
 
std::string_view magic (file_kind kind)
 
template<class P >
std::uint64_t body_bytes (std::uint64_t extent) noexcept
 
template<class P >
std::uint64_t total_bytes (std::uint64_t extent)
 
template<class P >
void validate_metadata (file_header< P > const &header)
 
template<class P >
void validate_body (file_header< P > const &header, std::span< std::byte const > body)
 
std::uint32_t header_checksum (std::span< std::byte const > bytes)
 

Variables

constexpr std::size_t header_bytes = 96
 
constexpr std::uint16_t version = 1
 

Function Documentation

◆ body_bytes()

template<class P >
std::uint64_t everett::file_detail::body_bytes ( std::uint64_t  extent)
noexcept

◆ get()

std::uint64_t everett::file_detail::get ( std::span< std::byte const >  bytes,
std::size_t  at,
unsigned  width 
)
inlinenoexcept

◆ header_checksum()

std::uint32_t everett::file_detail::header_checksum ( std::span< std::byte const >  bytes)
inline

◆ magic()

std::string_view everett::file_detail::magic ( file_kind  kind)
inline

◆ put()

void everett::file_detail::put ( std::span< std::byte >  bytes,
std::size_t  at,
unsigned  width,
std::uint64_t  value 
)
inlinenoexcept

◆ total_bytes()

template<class P >
std::uint64_t everett::file_detail::total_bytes ( std::uint64_t  extent)

◆ validate_body()

template<class P >
void everett::file_detail::validate_body ( file_header< P > const &  header,
std::span< std::byte const >  body 
)

◆ validate_metadata()

template<class P >
void everett::file_detail::validate_metadata ( file_header< P > const &  header)

Variable Documentation

◆ header_bytes

constexpr std::size_t everett::file_detail::header_bytes = 96
inlineconstexpr

◆ version

constexpr std::uint16_t everett::file_detail::version = 1
inlineconstexpr