Import cstr and segment functions into macho

This commit is contained in:
Sam Carlton 2021-02-02 20:22:58 -06:00
parent b6d2316313
commit 362e5bcc6a
3 changed files with 87 additions and 80 deletions

View file

@ -11,6 +11,8 @@ import { MachoHeader64, MachoHeader } from './macho.header.js'
import { LOAD_COMMAND_TYPE, LoadCommand } from './macho.loadcommand.js'
import { CPU_TYPE, CPU_SUB_TYPE } from './macho.cpu.js'
import { FILE_FLAGS, FILE_TYPE } from './macho.file.js'
import Cstr from './macho.cstr.js'
import { SegmentCommand } from './macho.segment.js'
function default_callback(buffer) {
console.log('Received ' + buffer.byteLength / (1024 * 1024) + ' MB');