lib/code.js
function Code( buffer, start, end ) {

  if( !(this instanceof Code) )
    return new Code( buffer, start, end )

  this.offset = start || 0x00

  if( Buffer.isBuffer( buffer ) ) {
    this.data = buffer.slice( start, end )
  } else {
    this.data = Buffer.alloc( 446 )
  }

}
function Code( buffer, start, end ) {

  if( !(this instanceof Code) )
    return new Code( buffer, start, end )

  this.offset = start || 0x00

  if( Buffer.isBuffer( buffer ) ) {
    this.data = buffer.slice( start, end )
  } else {
    this.data = Buffer.alloc( 446 )
  }

}
function Code ( buffer , start , end ) { if ( ! ( this instanceof Code ) ) return new Code ( buffer , start , end ) this . offset = start || x00 if ( Buffer . isBuffer ( buffer ) ) { this . data = buffer . slice ( start , end ) } else { this . data = Buffer . alloc ( 446 ) } }
Code section structure
@class
@memberOf MBR
@param {Buffer} buffer
@param {Number} [start]
@param {Number} [end]
Code section structure