(cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags)
| 53 | |
| 54 | //64-bits segment command |
| 55 | var 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 | |
| 73 | export { SG_FLAGS, SG_FLAG, SEGMENT, SegmentCommand, SegmentCommand64 } |
nothing calls this directly
no outgoing calls
no test coverage detected