You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iso-spider/lib/iso9660/read/extended-attribute-record.js

14 lines
398 B
JavaScript

'use strict';
const Promise = require("bluebird");
const parseExtendedAttributeRecord = require("../parse/extended-attribute-record");
module.exports = function readExtendedAttributeRecord(image, sector, sectorCount) {
return Promise.try(() => {
return image.readSectors(sector, sectorCount);
}).then((buffer) => {
return parseExtendedAttributeRecord(buffer);
});
};