MCPcopy Create free account
hub / github.com/bhideki/darksword / constructor

Method constructor

payloads/rce_worker.js:14–23  ·  view source on GitHub ↗
(messageName, destinationID)

Source from the content-addressed store, hash-verified

12 const rce_begin = Date.now();
13 class Encoder {
14 constructor(messageName, destinationID) {
15 this.argList = [];
16 if (arguments.length) {
17 this.messageName = messageName;
18 this.destinationID = destinationID;
19 this.encode('uint8_t', 0);
20 this.encode('uint16_t', this.messageName);
21 this.encode('uint64_t', this.destinationID);
22 }
23 }
24 encode(type, value) {
25 this.argList.push({
26 type,

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected