Socket
Socket
Sign inDemoInstall

apple-partition-map

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apple-partition-map

Apple Partition Map (APM)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
22.0 kB
Created
Weekly downloads
 

Readme

Source

Apple Partion Map (APM)

npm npm license npm downloads build status

Install via npm

$ npm install --save apple-partition-map

Index

  • mbr – Parse / construct Master Boot Records
  • gpt – Parse / construct GUID partition tables
  • disk – ...
  • blockdevice – Read from / write to block devices
  • udif – Apple Universal Disk Image Format (UDIF/DMG)

Usage

var APM = require( 'apple-partition-map' )
var apm = APM.parse( buffer )
APM {
  driverMap: DriverDescriptorMap {
    signature: 17746,
    blockSize: 512,
    blockCount: 62333952,
    deviceType: 0,
    deviceId: 0,
    driverData: 0,
    driverCount: 0,
    drivers: [
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 },
      { block: 0, size: 0, type: 0 }
    ],
    reserved: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00...>
  },
  partitions: [
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 1,
      pBlockCount: 63,
      name: 'Apple',
      type: 'Apple_partition_map',
      lBlockStart: 0,
      lBlockCount: 63,
      flags: 3,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 0,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    },
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 64,
      pBlockCount: 262144,
      name: '',
      type: 'Apple_Free',
      lBlockStart: 0,
      lBlockCount: 0,
      flags: 0,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 0,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    },
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 262208,
      pBlockCount: 19550904,
      name: '',
      type: 'Apple_HFS',
      lBlockStart: 0,
      lBlockCount: 19550904,
      flags: 1073741875,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 0,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    },
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 19813112,
      pBlockCount: 32745368,
      name: '',
      type: 'Apple_HFSX',
      lBlockStart: 0,
      lBlockCount: 32745368,
      flags: 1073741875,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 0,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    },
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 52558480,
      pBlockCount: 262144,
      name: 'Booter',
      type: 'DOS_FAT_32',
      lBlockStart: 0,
      lBlockCount: 262144,
      flags: 3221225523,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 1131887160,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    },
    Partition {
      signature: 20557,
      reserved1: 0,
      mapEntries: 6,
      pBlockStart: 52820624,
      pBlockCount: 9513328,
      name: '',
      type: 'Windows_NTFS',
      lBlockStart: 0,
      lBlockCount: 9513328,
      flags: 1073741875,
      bootBlock: 0,
      bootBytes: 0,
      loadAddress: 0,
      loadAddress2: 0,
      gotoAddress: 0,
      gotoAddress2: 0,
      checksum: 0,
      cpuId: 0,
      reserved2: null,
      reserved3: null
    }
  ]
}

References

Keywords

FAQs

Last updated on 23 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc