public void WriteBytes(byte[] buffer, int offset) { buffer[offset + 0x00] = Status; FirstSectorCHS.WriteBytes(buffer, offset + 0x01); buffer[offset + 0x04] = PartitionType; LastSectorCHS.WriteBytes(buffer, offset + 0x05); LittleEndianWriter.WriteUInt32(buffer, offset + 0x08, FirstSectorLBA); LittleEndianWriter.WriteUInt32(buffer, offset + 0x0C, SectorCountLBA); }