class PartitionMap
Defined at line 17 of file ../../src/firmware/gigaboot/cpp/partition.h
Public Methods
std::optional<PartitionMap> GeneratePartitionMap (const std::span<const PartitionEntry> partitions)
Factory function for a valid GPT partition map given custom partition definitions.
The relative order of partitions is preserved.
If a partition name is repeated, the largest size it is given will be assigned.
If the last partition entry has a min_size_bytes value of SIZE_MAX,
it will take all remaining space on the device.
If any partition entry besides the final one has a min_size_bytes of SIZE_MAX,
GeneratePartitionMap will return std::nullopt
Defined at line 12 of file ../../src/firmware/gigaboot/cpp/partition.cc
std::optional<PartitionMap> GeneratePartitionMap (const std::span<const PartitionEntry> partitions)
Factory function for a valid GPT partition map given custom partition definitions.
The relative order of partitions is preserved.
If a partition name is repeated, the largest size it is given will be assigned.
If the last partition entry has a min_size_bytes value of SIZE_MAX,
it will take all remaining space on the device.
If any partition entry besides the final one has a min_size_bytes of SIZE_MAX,
GeneratePartitionMap will return std::nullopt
Defined at line 12 of file ../../src/firmware/gigaboot/cpp/partition.cc
const fbl::Vector<PartitionEntry> & partitions ()
Defined at line 36 of file ../../src/firmware/gigaboot/cpp/partition.h