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); }
static public int BuffSpaceNeeded() { return(bootRecordCodeSize + PartitionTable.BuffSpaceNeeded() + sizeof(UInt16)); }