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

Classes

struct  directory
 

Functions

constexpr std::size_t profile_slot (unsigned route) noexcept
 
constexpr std::size_t rank_slot (unsigned route) noexcept
 
constexpr std::size_t flags_slot (unsigned route) noexcept
 
constexpr std::size_t cuts_slot (unsigned route) noexcept
 
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)
 
template<class P >
profile_view< P, stream_role::borrowed > profile (std::span< std::byte const > body, directory const &layout, unsigned route)
 

Variables

constexpr std::uint16_t version = 3
 
constexpr std::size_t section_count = 18
 
constexpr std::size_t descriptor_offset = 160
 
constexpr std::size_t directory_bytes = descriptor_offset + 16 * section_count
 

Function Documentation

◆ cuts_slot()

constexpr std::size_t everett::cola_section_detail::cuts_slot ( unsigned  route)
constexprnoexcept

◆ flags_slot()

constexpr std::size_t everett::cola_section_detail::flags_slot ( unsigned  route)
constexprnoexcept

◆ parse()

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

◆ profile()

template<class P >
profile_view< P, stream_role::borrowed > everett::cola_section_detail::profile ( std::span< std::byte const >  body,
directory const &  layout,
unsigned  route 
)

◆ profile_slot()

constexpr std::size_t everett::cola_section_detail::profile_slot ( unsigned  route)
constexprnoexcept

◆ rank_slot()

constexpr std::size_t everett::cola_section_detail::rank_slot ( unsigned  route)
constexprnoexcept

◆ section()

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

Variable Documentation

◆ descriptor_offset

constexpr std::size_t everett::cola_section_detail::descriptor_offset = 160

◆ directory_bytes

constexpr std::size_t everett::cola_section_detail::directory_bytes = descriptor_offset + 16 * section_count
inlineconstexpr

◆ section_count

constexpr std::size_t everett::cola_section_detail::section_count = 18
inlineconstexpr

◆ version

constexpr std::uint16_t everett::cola_section_detail::version = 3
inlineconstexpr