pub fn serialize_partition_table(
header: &mut Header,
block_size: usize,
num_blocks: u64,
entries: &[PartitionTableEntry],
) -> Result<Vec<u8>, FormatError>
Expand description
Serializes the partition table, and updates header
to reflect the changes (including computing
the CRC). Returns the raw bytes of the partition table.
Fails if any of the entries in entries
are invalid.