function parseHeader(buffer) {
  const data = {};
  let offset = 0;
  ustarStructure.forEach(function (value) {
    const arr = buffer.subarray(offset, offset + value.length);
    data[value.field] = arr;
    offset += value.length;
  });
  return data;
}
/**
 * Parse file header in a tar archive
 * @param length
 */
Parse file header in a tar archive
@param length
Parse file header in a tar archive @param length
function parseHeader(buffer) {
  const data = {};
  let offset = 0;
  ustarStructure.forEach(function (value) {
    const arr = buffer.subarray(offset, offset + value.length);
    data[value.field] = arr;
    offset += value.length;
  });
  return data;
}
function parseHeader ( buffer ) { const data = { } ; let offset = 0 ; ustarStructure . forEach ( function ( value ) { const arr = buffer . subarray ( offset , offset + value . length ) ; data [ value . field ] = arr ; offset += value . length ; } ) ; return data ; }
Parse file header in a tar archive
 @param length
Parse file header in a tar archive @param length