/srv/osrm/osrm-backend/include/storage
NameSizeModeActions
block.hpp10040644editdlrm
io.hpp119140644editdlrm
io_config.hpp25230644editdlrm
io_fwd.hpp1760644editdlrm
serialization.hpp86520644editdlrm
shared_datatype.hpp91600644editdlrm
shared_data_index.hpp33170644editdlrm
shared_memory.hpp94190644editdlrm
shared_memory_ownership.hpp2320644editdlrm
shared_monitor.hpp75740644editdlrm
storage.hpp23780644editdlrm
storage_config.hpp26330644editdlrm
tar.hpp101490644editdlrm
tar_fwd.hpp1800644editdlrm
view_factory.hpp158500644editdlrm
Edit: /srv/osrm/osrm-backend/include/storage/block.hpp (1004B)
#ifndef OSRM_STORAGE_BLOCK_HPP #define OSRM_STORAGE_BLOCK_HPP #include "storage/io.hpp" #include #include #include namespace osrm::storage { struct Block { std::uint64_t num_entries; std::uint64_t byte_size; std::uint64_t offset; Block() : num_entries(0), byte_size(0), offset(0) {} Block(std::uint64_t num_entries, std::uint64_t byte_size, std::uint64_t offset) : num_entries(num_entries), byte_size(byte_size), offset(offset) { } Block(std::uint64_t num_entries, std::uint64_t byte_size) : num_entries(num_entries), byte_size(byte_size), offset(0) { } }; using NamedBlock = std::tuple; template Block make_block(uint64_t num_entries) { // NOLINTNEXTLINE(misc-redundant-expression) static_assert(sizeof(T) % alignof(T) == 0, "aligned T* can't be used as an array pointer"); return Block{num_entries, sizeof(T) * num_entries, 0}; } } // namespace osrm::storage #endif