MCPcopy Create free account
hub / github.com/aesthetic0001/js-virtualizer / readArray

Method readArray

src/vm_dev.js:55–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 readArray() {
56 const length = this.readByte()
57 const array = []
58 for (let i = 0; i < length; i++) {
59 // these should be registers to loaded values
60 array.push(this.read(this.readByte()))
61 }
62 log(`Read array of length ${length}: ${array}`)
63 return array
64 }
65
66 // js integers are 32-bit signed
67 readDWORD() {

Callers 1

opcodes.jsFile · 0.45

Calls 3

readByteMethod · 0.95
readMethod · 0.95
logFunction · 0.85

Tested by

no test coverage detected