function PartitionEntry( options ) {

  if( !(this instanceof PartitionEntry) ) {
    return new PartitionEntry( options )
  }

  options = options != null ? options : {}

  /** @type {String} Type GUID */
  this.type = options.type || GUID.ZERO
  /** @type {String} GUID */
  this.guid = options.guid || GUID.ZERO
  /** @type {String} Partition label */
  this.name = options.name || ''

  /** @type {Number} First addressable block address */
  this.firstLBA = options.firstLBA || 0
  /** @type {Number} Last addressable block address */
  this.lastLBA = options.lastLBA || 0
  // NOTE: Can't use this as uint64 as logical ops will cast to uint32;
  // Maybe revert to buffer, or use bitfield module?
  /** @type {Number} Attribute flags */
  this.attr = options.attr || 0

}
function PartitionEntry( options ) {

  if( !(this instanceof PartitionEntry) ) {
    return new PartitionEntry( options )
  }

  options = options != null ? options : {}

  
  this.type = options.type || GUID.ZERO
  
  this.guid = options.guid || GUID.ZERO
  
  this.name = options.name || ''

  
  this.firstLBA = options.firstLBA || 0
  
  this.lastLBA = options.lastLBA || 0
  
  
  
  this.attr = options.attr || 0

}
function PartitionEntry ( options ) { if ( ! ( this instanceof PartitionEntry ) ) { return new PartitionEntry ( options ) } options = options != null ? options : { } /** @type {String} Type GUID */ this . type = options . type || GUID . ZERO /** @type {String} GUID */ this . guid = options . guid || GUID . ZERO /** @type {String} Partition label */ this . name = options . name || '' /** @type {Number} First addressable block address */ this . firstLBA = options . firstLBA || 0 /** @type {Number} Last addressable block address */ this . lastLBA = options . lastLBA || 0 // NOTE: Can't use this as uint64 as logical ops will cast to uint32; // Maybe revert to buffer, or use bitfield module? /** @type {Number} Attribute flags */ this . attr = options . attr || 0 }
PartitionEntry
@constructor
@param {Object} [options]
@returns {PartitionEntry}
PartitionEntry