Functions | |
static void | read (DB::RgrData &data, int &err, const std::string &filepath) |
static void | set_rgr (const DB::RgrData &data, int &err, std::string &&filepath, uint8_t replication) noexcept |
static void | get_rgr (DB::RgrData &data, const std::string &filepath) noexcept |
Variables | |
static const uint8_t | HEADER_SIZE = 12 |
static const uint8_t | HEADER_OFFSET_CHKSUM = 8 |
|
staticnoexcept |
Definition at line 83 of file RgrData.h.
References data, SWC::Common::Files::Schema::filepath(), SWC::Error::OK, and read().
Referenced by SWC::Manager::Range::get_last_rgr(), and SWC::Ranger::Range::last_rgr_chk().
|
static |
Definition at line 27 of file RgrData.h.
References SWC::Core::Buffer< T >::base, SWC::Core::checksum_i32_chk(), SWC::Error::CHECKSUM_MISMATCH, data, SWC::Serialization::decode_i32(), SWC::Common::Files::Schema::filepath(), HEADER_OFFSET_CHKSUM, HEADER_SIZE, SWC::Env::FsInterface::interface(), and SWC::Core::Buffer< T >::size.
Referenced by SWC::FS::FileSystem::default_read(), get_rgr(), SWC::Ranger::RangeData::load(), SWC::FS::FileSystem::read(), and SWC::Comm::ConnHandler::received().
|
inlinestaticnoexcept |
Definition at line 49 of file RgrData.h.
References SWC::Core::Buffer< T >::base, SWC::Core::checksum_i32(), data, SWC::Serialization::encode_i32(), SWC::Core::BufferDyn< BufferT >::ensure(), SWC::Common::Files::Schema::filepath(), HEADER_SIZE, SWC::Env::FsInterface::interface(), SWC::FS::SmartFd::make_ptr(), SWC::FS::OPEN_FLAG_OVERWRITE, SWC::Core::BufferDyn< BufferT >::ptr, and SWC_CURRENT_EXCEPTION.
Referenced by SWC::Ranger::Range::internal_take_ownership(), and SWC::Ranger::Range::set_rgr().
|
static |
Definition at line 24 of file RgrData.h.
Referenced by SWC::Ranger::RangeData::load(), and read().
|
static |
Definition at line 23 of file RgrData.h.
Referenced by SWC::Ranger::RangeData::load(), read(), set_rgr(), and SWC::Ranger::RangeData::write().