protected OffsetTableHardDisk(HardDisk hdd) { if (hdd == null) throw new ArgumentNullException(nameof(hdd)); mHdd = hdd; mReadBlock = readBlock; mGetBlockKey = getBlockKey; }
protected OffsetTableHardDisk(HardDisk hdd) { if (hdd == null) { throw new ArgumentNullException(nameof(hdd)); } mHdd = hdd; mReadBlock = readBlock; mGetBlockKey = getBlockKey; }
public DNode(Zio zio, dnode_phys_t phys) { if (phys.NLevels == 0) { throw new ArgumentOutOfRangeException(nameof(phys), "Expect dnode's NLevels to be > 0"); } mZio = zio; mGetBlockKey = getBlockKey; mReadBlock = readBlock; mPhys = phys; }