Esempio n. 1
0
 protected OffsetTableHardDisk(HardDisk hdd)
 {
     if (hdd == null)
         throw new ArgumentNullException(nameof(hdd));
     mHdd = hdd;
     mReadBlock = readBlock;
     mGetBlockKey = getBlockKey;
 }
Esempio n. 2
0
 protected OffsetTableHardDisk(HardDisk hdd)
 {
     if (hdd == null)
     {
         throw new ArgumentNullException(nameof(hdd));
     }
     mHdd         = hdd;
     mReadBlock   = readBlock;
     mGetBlockKey = getBlockKey;
 }
Esempio n. 3
0
        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;
        }