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

Function Section

helpers/macho/macho.section.js:57–72  ·  view source on GitHub ↗
(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2)

Source from the content-addressed store, hash-verified

55};
56
57var Section = function Section(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2) {
58 this.sectname = new Uint8Array(16);
59 this.segname = new Uint8Array(16);
60 this.addr = addr || 0x00000000;
61 this.size = size || 0x00000000;
62 this.offset = offset || 0x00000000;
63 this.align = align || 0x00000000;
64 this.reloff = reloff || 0x00000000;
65 this.nreloc = nreloc || 0x00000000;
66 this.flags = flags || 0x00000000;
67 this.reserved1 = reserved1 || 0x00000000;
68 this.reserved2 = reserved2 || 0x00000000;
69 this.toString = function() {
70 return JSON.stringify(this);
71 };
72};
73
74var Section64 = function Section64(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2, reserved3) {
75 this.sectname = new Uint8Array(16);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected