Skip to main content

SharedMmapBlockCacheConfig

SharedMmapBlockCacheConfig

Configuration for SharedMmapBlockCache.

#include <SharedMmapBlockCache.hpp>

Public Attributes

Name
std::filesystem::path file_path
Path to interleaved binary file.
std::size_t header_size
Bytes to skip at file start.
std::size_t num_channels
Number of interleaved channels.
MmapDataType data_type
Element data type in file.
float scale_factor
Multiplicative scale applied on decode.
float offset_value
Additive offset applied on decode.
std::size_t block_size_samples
Samples per channel per block.
std::size_t max_cached_blocks
Maximum blocks held in cache.

Public Attributes Documentation

variable file_path

std::filesystem::path file_path;

Path to interleaved binary file.

variable header_size

std::size_t header_size = 0;

Bytes to skip at file start.

variable num_channels

std::size_t num_channels = 1;

Number of interleaved channels.

variable data_type

MmapDataType data_type = MmapDataType::Int16;

Element data type in file.

variable scale_factor

float scale_factor = 1.0f;

Multiplicative scale applied on decode.

variable offset_value

float offset_value = 0.0f;

Additive offset applied on decode.

variable block_size_samples

std::size_t block_size_samples = 4096;

Samples per channel per block.

variable max_cached_blocks

std::size_t max_cached_blocks = 16;

Maximum blocks held in cache.


Updated on 2026-11-13 at 20:25:39 +0000