MCPcopy
hub / github.com/protomaps/PMTiles / get_bytes

Function get_bytes

python/pmtiles/pmtiles/reader.py:17–18  ·  view source on GitHub ↗
(offset, length)

Source from the content-addressed store, hash-verified

15 mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
16
17 def get_bytes(offset, length):
18 return mapping[offset : offset + length]
19
20 return get_bytes
21

Callers 2

traverseFunction · 0.85
all_tilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…