MCPcopy Create free account
hub / github.com/OSGeo/PROJ / BlockCache

Class BlockCache

src/grids.cpp:409–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407// ---------------------------------------------------------------------------
408
409class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected