MCPcopy Create free account
hub / github.com/Marus/cortex-debug / readMemory

Method readMemory

src/frontend/memreadutils.ts:54–59  ·  view source on GitHub ↗
(
        session: vscode.DebugSession, startAddr: number, length: number, storeTo: number[])

Source from the content-addressed store, hash-verified

52 }
53
54 public static readMemory(
55 session: vscode.DebugSession, startAddr: number, length: number, storeTo: number[]): Promise<boolean> {
56 const maxChunk = (4 * 1024);
57 const ranges = AddressRangesUtils.splitIntoChunks([new AddrRange(startAddr, length)], maxChunk);
58 return MemReadUtils.readMemoryChunks(session, startAddr, ranges, storeTo);
59 }
60}

Callers

nothing calls this directly

Calls 2

splitIntoChunksMethod · 0.80
readMemoryChunksMethod · 0.80

Tested by

no test coverage detected