Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
traverse
Function · 0.85
all_tiles
Function · 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…