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

Classes

struct  descriptor
 
struct  directory
 

Functions

std::uint64_t align (std::uint64_t value) noexcept
 
void zero (std::span< std::byte const > bytes, char const *message)
 
unsigned hex_value (char c) noexcept
 
void put_id (std::span< std::byte > bytes, std::size_t at, object_id const &id)
 
object_id get_id (std::span< std::byte const > bytes, std::size_t at)
 
std::span< std::byte const > section (std::span< std::byte const > body, directory const &layout, std::size_t slot)
 
template<class P >
directory parse (file_header< P > const &header, std::span< std::byte const > body)
 
void validate_gaps (std::span< std::byte const > body, directory const &layout)
 
template<class P , stream_role Role>
profile_view< P, Role > profile (file_header< P > const &header, std::span< std::byte const > body, directory const &layout)
 
void equal_words (word_view actual, std::span< std::uint64_t const > expected, char const *message)
 
template<class P , stream_role Role>
void scan_profile (profile_view< P, Role > const &view)
 

Variables

constexpr std::uint16_t version = 2
 
constexpr std::size_t native_directory_bytes = 128
 
constexpr std::size_t index_directory_bytes = 256
 
constexpr std::size_t native_descriptor_offset = 48
 
constexpr std::size_t index_descriptor_offset = 112
 
constexpr std::size_t descriptor_bytes = 16
 
constexpr std::size_t fc = 0
 
constexpr std::size_t low = 1
 
constexpr std::size_t high = 2
 
constexpr std::size_t samples = 3
 
constexpr std::size_t sparse = 4
 
constexpr std::size_t classes = 5
 
constexpr std::size_t checkpoints = 6
 
constexpr std::size_t false_borrows = 7
 
constexpr std::size_t cut_lcps = 8
 

Function Documentation

◆ align()

std::uint64_t everett::section_detail::align ( std::uint64_t  value)
inlinenoexcept

◆ equal_words()

void everett::section_detail::equal_words ( word_view  actual,
std::span< std::uint64_t const >  expected,
char const *  message 
)
inline

◆ get_id()

object_id everett::section_detail::get_id ( std::span< std::byte const >  bytes,
std::size_t  at 
)
inline

◆ hex_value()

unsigned everett::section_detail::hex_value ( char  c)
inlinenoexcept

◆ parse()

template<class P >
directory everett::section_detail::parse ( file_header< P > const &  header,
std::span< std::byte const >  body 
)

◆ profile()

template<class P , stream_role Role>
profile_view< P, Role > everett::section_detail::profile ( file_header< P > const &  header,
std::span< std::byte const >  body,
directory const &  layout 
)

◆ put_id()

void everett::section_detail::put_id ( std::span< std::byte >  bytes,
std::size_t  at,
object_id const &  id 
)
inline

◆ scan_profile()

template<class P , stream_role Role>
void everett::section_detail::scan_profile ( profile_view< P, Role > const &  view)

◆ section()

std::span< std::byte const > everett::section_detail::section ( std::span< std::byte const >  body,
directory const &  layout,
std::size_t  slot 
)
inline

◆ validate_gaps()

void everett::section_detail::validate_gaps ( std::span< std::byte const >  body,
directory const &  layout 
)
inline

◆ zero()

void everett::section_detail::zero ( std::span< std::byte const >  bytes,
char const *  message 
)
inline

Variable Documentation

◆ checkpoints

constexpr std::size_t everett::section_detail::checkpoints = 6

◆ classes

constexpr std::size_t everett::section_detail::classes = 5
inlineconstexpr

◆ cut_lcps

constexpr std::size_t everett::section_detail::cut_lcps = 8

◆ descriptor_bytes

constexpr std::size_t everett::section_detail::descriptor_bytes = 16
inlineconstexpr

◆ false_borrows

constexpr std::size_t everett::section_detail::false_borrows = 7

◆ fc

constexpr std::size_t everett::section_detail::fc = 0
inlineconstexpr

◆ high

constexpr std::size_t everett::section_detail::high = 2

◆ index_descriptor_offset

constexpr std::size_t everett::section_detail::index_descriptor_offset = 112
inlineconstexpr

◆ index_directory_bytes

constexpr std::size_t everett::section_detail::index_directory_bytes = 256
inlineconstexpr

◆ low

constexpr std::size_t everett::section_detail::low = 1

◆ native_descriptor_offset

constexpr std::size_t everett::section_detail::native_descriptor_offset = 48
inlineconstexpr

◆ native_directory_bytes

constexpr std::size_t everett::section_detail::native_directory_bytes = 128
inlineconstexpr

◆ samples

constexpr std::size_t everett::section_detail::samples = 3

◆ sparse

constexpr std::size_t everett::section_detail::sparse = 4

◆ version

constexpr std::uint16_t everett::section_detail::version = 2
inlineconstexpr