Class BinaryPartitionWriter

Class Documentation

class BinaryPartitionWriter

Writes a partition to a file that contains a binary list of partition ids. Partition ids are unsigned integers.

Public Functions

BinaryPartitionWriter(uint8_t width = 4)

Constructs the BinaryPartitionWriter class using unsigned integers of width width for the written partition ids.

Parameters:

width[in] The width of the written integers (supported values: 4, 8, default: 4).

void write(const Partition &zeta, const std::string &path) const

Write the given partition zeta to the given path.

Parameters:
  • zeta[in] The partition to write.

  • path[in] The path to write to.