lib/block.js
function( buffer, offset ) {

    offset = offset || 0

    this.type = buffer.readUInt32BE( offset + 0 )
    this.description = Block.getDescription( this.type )
    this.comment = buffer.toString( 'ascii', offset + 4, offset + 8 ).replace( /\u0000/g, '' )
    this.sectorNumber = uint64.readBE( buffer, offset + 8, 8 )
    this.sectorCount = uint64.readBE( buffer, offset + 16, 8 )
    this.compressedOffset = uint64.readBE( buffer, offset + 24, 8 )
    this.compressedLength = uint64.readBE( buffer, offset + 32, 8 )

    return this

  }
function( buffer, offset ) {

    offset = offset || 0

    this.type = buffer.readUInt32BE( offset + 0 )
    this.description = Block.getDescription( this.type )
    this.comment = buffer.toString( 'ascii', offset + 4, offset + 8 ).replace( /\u0000/g, '' )
    this.sectorNumber = uint64.readBE( buffer, offset + 8, 8 )
    this.sectorCount = uint64.readBE( buffer, offset + 16, 8 )
    this.compressedOffset = uint64.readBE( buffer, offset + 24, 8 )
    this.compressedLength = uint64.readBE( buffer, offset + 32, 8 )

    return this

  }
function ( buffer , offset ) { offset = offset || 0 this . type = buffer . readUInt32BE ( offset + 0 ) this . description = Block . getDescription ( this . type ) this . comment = buffer . toString ( 'ascii' , offset + 4 , offset + 8 ) . replace ( / \u0000 / g , '' ) this . sectorNumber = uint64 . readBE ( buffer , offset + 8 , 8 ) this . sectorCount = uint64 . readBE ( buffer , offset + 16 , 8 ) this . compressedOffset = uint64 . readBE ( buffer , offset + 24 , 8 ) this . compressedLength = uint64 . readBE ( buffer , offset + 32 , 8 ) return this }
Parse Mish Block data from a buffer
@param {Buffer} buffer
@param {Number} [offset=0]
@returns {Block}
Parse Mish Block data from a buffer