#include <mmap.hh>
Public Member Functions | |
Rolling () | |
Rolling (void *data) | |
Rolling (const Rolling ©_from, uint64_t increase=0) | |
Rolling & | operator= (const Rolling ©_from) |
Rolling (int fd, bool for_write, std::size_t block, std::size_t read_bound, uint64_t offset, uint64_t amount) | |
void | Init (void *data) |
void | IncreaseBase (uint64_t by) |
void | DecreaseBase (uint64_t by) |
void * | ExtractNonRolling (scoped_memory &out, uint64_t index, std::size_t size) |
void * | get () const |
void * | CheckedBase (uint64_t index) |
void * | CheckedIndex (uint64_t index) |
Definition at line 151 of file mmap.hh.
util::Rolling::Rolling | ( | void * | data | ) | [inline, explicit] |
util::Rolling::Rolling | ( | const Rolling & | copy_from, | |
uint64_t | increase = 0 | |||
) |
Definition at line 342 of file mmap.cc.
References IncreaseBase().
util::Rolling::Rolling | ( | int | fd, | |
bool | for_write, | |||
std::size_t | block, | |||
std::size_t | read_bound, | |||
uint64_t | offset, | |||
uint64_t | amount | |||
) | [explicit] |
void* util::Rolling::CheckedBase | ( | uint64_t | index | ) | [inline] |
Definition at line 190 of file mmap.hh.
Referenced by CheckedIndex().
void* util::Rolling::CheckedIndex | ( | uint64_t | index | ) | [inline] |
Definition at line 198 of file mmap.hh.
References CheckedBase().
void * util::Rolling::ExtractNonRolling | ( | scoped_memory & | out, | |
uint64_t | index, | |||
std::size_t | size | |||
) |
Definition at line 378 of file mmap.cc.
References util::scoped_memory::get(), util::kFileFlags, util::MapOrThrow(), util::scoped_memory::MMAP_ALLOCATED, util::scoped_memory::reset(), and util::SizePage().
void util::Rolling::IncreaseBase | ( | uint64_t | by | ) | [inline] |
void util::Rolling::Init | ( | void * | data | ) | [inline] |