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

Function initTwoCharsToIntMap

src/gdb.ts:3301–3308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3299}
3300
3301function initTwoCharsToIntMap(): object {
3302 const obj = {};
3303 for (let i = 0; i < 256; i++) {
3304 const key = i.toString(16).padStart(2, '0');
3305 obj[key] = i;
3306 }
3307 return obj;
3308}
3309
3310const twoCharsToIntMap = initTwoCharsToIntMap();
3311

Callers 1

gdb.tsFile · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected