/* * Copyright (c) 2020, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Kernel { PartitionTable::PartitionTable(const StorageDevice& device) : m_device(device) { } Optional PartitionTable::partition(unsigned index) { if (index > partitions_count()) return {}; return m_partitions[index]; } }