pstore2
Public Member Functions | List of all members
pstore::repo::bss_section_creation_dispatcher Class Referencefinal
Inheritance diagram for pstore::repo::bss_section_creation_dispatcher:
Inheritance graph
[legend]
Collaboration diagram for pstore::repo::bss_section_creation_dispatcher:
Collaboration graph
[legend]

Public Member Functions

 bss_section_creation_dispatcher (gsl::not_null< section_content const *> const sec)
 
 bss_section_creation_dispatcher (section_kind const kind, gsl::not_null< section_content const *> const sec)
 
 bss_section_creation_dispatcher (bss_section_creation_dispatcher const &)=delete
 
 bss_section_creation_dispatcher (bss_section_creation_dispatcher &&) noexcept=delete
 
bss_section_creation_dispatcheroperator= (bss_section_creation_dispatcher const &)=delete
 
bss_section_creation_dispatcheroperator= (bss_section_creation_dispatcher &&) noexcept=delete
 
void set_content (gsl::not_null< section_content const *> const sec)
 
std::size_t size_bytes () const final
 Returns the number of bytes of storage that are required for an instance of the section data. More...
 
std::uint8_t * write (std::uint8_t *out) const final
 Copies the section instance data to the memory starting at out. More...
 
- Public Member Functions inherited from pstore::repo::section_creation_dispatcher
 section_creation_dispatcher (section_kind const kind) noexcept
 
 section_creation_dispatcher (section_creation_dispatcher const &)=delete
 
 section_creation_dispatcher (section_creation_dispatcher &&)=delete
 
section_creation_dispatcheroperator= (section_creation_dispatcher const &)=delete
 
section_creation_dispatcheroperator= (section_creation_dispatcher &&)=delete
 
section_kind const & kind () const noexcept
 
template<typename IntType , typename = std::enable_if<std::is_unsigned<IntType>::value>>
std::size_t aligned (IntType a) const
 
std::uint8_t * aligned (std::uint8_t *const a) const
 

Member Function Documentation

◆ size_bytes()

std::size_t pstore::repo::bss_section_creation_dispatcher::size_bytes ( ) const
finalvirtual

Returns the number of bytes of storage that are required for an instance of the section data.

Implements pstore::repo::section_creation_dispatcher.

◆ write()

std::uint8_t * pstore::repo::bss_section_creation_dispatcher::write ( std::uint8_t *  out) const
finalvirtual

Copies the section instance data to the memory starting at out.

On entry, out is aligned according to the result of the aligned() member function.

Parameters
outThe address to which the instance data will be written.
Returns
The address past the end of instance data where the next section's data can be writen.

Implements pstore::repo::section_creation_dispatcher.


The documentation for this class was generated from the following files: