MCPcopy Create free account
hub / github.com/protomaps/PMTiles / MemorySource

Function MemorySource

python/pmtiles/pmtiles/reader.py:23–27  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

21
22
23def MemorySource(buf):
24 def get_bytes(offset, length):
25 return buf[offset : offset + length]
26
27 return get_bytes
28
29
30class Reader:

Callers 3

test_roundtripMethod · 0.90
test_all_tilesMethod · 0.90

Calls

no outgoing calls

Tested by 3

test_roundtripMethod · 0.72
test_all_tilesMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…