chore(vhd-lib/Vhd#_getBatEntry): name param blockId

Because it's not a full block but an identifier.
This commit is contained in:
Julien Fontanet
2021-02-17 14:39:02 +01:00
parent 82cdfe7014
commit 8560ca0661

View File

@@ -178,8 +178,8 @@ export default class Vhd {
}
// return the first sector (bitmap) of a block
_getBatEntry(block) {
const i = block * 4
_getBatEntry(blockId) {
const i = blockId * 4
const { blockTable } = this
return i < blockTable.length ? blockTable.readUInt32BE(i) : BLOCK_UNUSED
}