Exemplo n.º 1
0
        internal static unsafe NtfsMFTFileRecord Create(NtfsPartition owner, byte *rawData)
        {
            if (null == owner)
            {
                throw new ArgumentNullException();
            }
            if (_gcPreventer.ContainsKey(owner))
            {
                throw new InvalidOperationException();
            }
            NtfsMFTFileRecord result = new NtfsMFTFileRecord(rawData);

            result.AssertNoOverflowingAttribute();
            _gcPreventer.Add(owner, result);
            return(result);
        }