| 407 | // --------------------------------------------------------------------------- |
| 408 | |
| 409 | class BlockCache { |
| 410 | public: |
| 411 | void insert(uint32_t ifdIdx, uint32_t blockNumber, |
| 412 | const std::vector<unsigned char> &data); |
| 413 | const std::vector<unsigned char> *get(uint32_t ifdIdx, |
| 414 | uint32_t blockNumber); |
| 415 | |
| 416 | private: |
| 417 | typedef uint64_t Key; |
| 418 | |
| 419 | static constexpr int NUM_BLOCKS_AT_CROSSING_TILES = 4; |
| 420 | static constexpr int MAX_SAMPLE_COUNT = 3; |
| 421 | lru11::Cache<Key, std::vector<unsigned char>, lru11::NullLock> cache_{ |
| 422 | NUM_BLOCKS_AT_CROSSING_TILES * MAX_SAMPLE_COUNT}; |
| 423 | }; |
| 424 | |
| 425 | // --------------------------------------------------------------------------- |
| 426 |
nothing calls this directly
no outgoing calls
no test coverage detected