Esempio n. 1
0
        public MasterBootRecord(byte[]   buffer,
                                ref int nextIndex
                                )
        {
            int x = 0;

            for (x = 0; x < bootRecordCode.Length; x++)
            {
                bootRecordCode[x] = buffer[nextIndex];  nextIndex++;
            }

            partitionTable = new PartitionTable(buffer, ref nextIndex);
            endOfSector    = BitConverter.ToUInt16(buffer, nextIndex);  nextIndex = nextIndex + sizeof(UInt16);
        }
Esempio n. 2
0
 static public int  BuffSpaceNeeded()
 {
     return(bootRecordCodeSize + PartitionTable.BuffSpaceNeeded() + sizeof(UInt16));
 }