arcstk::v_1_0_0::toc namespace

Functions assisting the management of TOCs.

Functions

auto get_filenames(const std::unique_ptr<TOC>& toc) -> std::vector<std::string>
Extract filenames from TOC in order.
auto get_filenames(const TOC& toc) -> std::vector<std::string>
Extract filenames from TOC in order.
auto get_offsets(const std::unique_ptr<TOC>& toc) -> std::vector<lba_count_t>
Extract the offsets from a TOC to an iterable container.
auto get_offsets(const TOC& toc) -> std::vector<lba_count_t>
Extract the offsets from a TOC to an iterable container.
auto get_parsed_lengths(const std::unique_ptr<TOC>& toc) -> std::vector<lba_count_t>
Extract parsed lengths from TOC in order.
auto get_parsed_lengths(const TOC& toc) -> std::vector<lba_count_t>
Extract parsed lengths from TOC in order.

Function documentation

std::vector<std::string> arcstk::v_1_0_0::toc::get_filenames(const std::unique_ptr<TOC>& toc)

Extract filenames from TOC in order.

Parameters
toc in The TOC
Returns List of filenames

std::vector<std::string> arcstk::v_1_0_0::toc::get_filenames(const TOC& toc)

Extract filenames from TOC in order.

Parameters
toc in The TOC
Returns List of filenames

std::vector<lba_count_t> arcstk::v_1_0_0::toc::get_offsets(const std::unique_ptr<TOC>& toc)

Extract the offsets from a TOC to an iterable container.

Parameters
toc in The TOC to get the offsets from
Returns The offsets of this TOC as an iterable container

std::vector<lba_count_t> arcstk::v_1_0_0::toc::get_offsets(const TOC& toc)

Extract the offsets from a TOC to an iterable container.

Parameters
toc in The TOC to get the offsets from
Returns The offsets of this TOC as an iterable container

std::vector<lba_count_t> arcstk::v_1_0_0::toc::get_parsed_lengths(const std::unique_ptr<TOC>& toc)

Extract parsed lengths from TOC in order.

Parameters
toc in The TOC
Returns List of parsed lengths from metafile

std::vector<lba_count_t> arcstk::v_1_0_0::toc::get_parsed_lengths(const TOC& toc)

Extract parsed lengths from TOC in order.

Parameters
toc in The TOC
Returns List of parsed lengths from metafile