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

Method replaceData

js/test/v3.test.ts:175–178  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

173 }
174
175 replaceData(path: string) {
176 this.path = path;
177 this.buffer = fs.readFileSync(path);
178 }
179
180 async getBytes(offset: number, length: number): Promise<RangeResponse> {
181 const slice = new Uint8Array(this.buffer.slice(offset, offset + length))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected