17#ifndef __image_io_sparse_legacy_h__
18#define __image_io_sparse_legacy_h__
80 uint32_t get_numel (
const uint64_t
offset)
const {
90 uint64_t set_numel (
const uint64_t old_offset,
const uint32_t numel);
93 uint8_t* get (
const uint64_t voxel_offset,
const size_t index)
const {
94 assert (
index < get_numel (voxel_offset));
102 const std::string& get_class_name()
const {
return class_name; }
103 size_t get_class_size()
const {
return class_size; }
114 std::unique_ptr<File::MMap>
mmap;
Default(const Header &header)
virtual void load(const Header &, size_t)
const std::string class_name
uint8_t * off2mem(const uint64_t offset) const
std::unique_ptr< File::MMap > mmap
virtual void unload(const Header &)