MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / SegmentCommand64

Function SegmentCommand64

helpers/macho/macho.segment.js:55–70  ·  view source on GitHub ↗
(cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags)

Source from the content-addressed store, hash-verified

53
54//64-bits segment command
55var SegmentCommand64 = function SegmentCommand64(cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags) {
56 this.cmd = cmd || 0x00000000;
57 this.cmdsize = cmdsize || 0x00000000;
58 this.segname = new TextEncoder("utf-8").encode(segname) || new Uint8Array(16);
59 this.vmaddr = vmaddr || 0x0000000000000000;
60 this.vmsize = vmsize || 0x0000000000000000;
61 this.fileoff = fileoff || 0x0000000000000000;
62 this.filesize = filesize || 0x0000000000000000;
63 this.maxprot = maxprot || 0x00000000;
64 this.initprot = initprot || 0x00000000;
65 this.nsects = nsects || 0x00000000;
66 this.flags = flags || 0x00000000;
67 this.toString = function() {
68 return JSON.stringify(this);
69 };
70};
71
72
73export { SG_FLAGS, SG_FLAG, SEGMENT, SegmentCommand, SegmentCommand64 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected