Pack v2.0.4
Writer Class Referencefinal

Pack writer functions. More...

#include <writer.hpp>

Static Public Member Functions

static void pack (const filesystem::path &packPath, uint64_t fileCount, const char **fileItemPaths, float zipThreshold=0.1f, bool printProgress=false, OnPackFile onPackFile=nullptr, void *argument=nullptr)
 Packs files to the Pack archive.
 

Detailed Description

Pack writer functions.

See the writer.h

Member Function Documentation

◆ pack()

static void pack ( const filesystem::path & packPath,
uint64_t fileCount,
const char ** fileItemPaths,
float zipThreshold = 0.1f,
bool printProgress = false,
OnPackFile onPackFile = nullptr,
void * argument = nullptr )
inlinestatic

Packs files to the Pack archive.

See the packFiles().

Parameters
[in]packPathoutput Pack file path string
fileCountfile count to pack
[in]fileItemPathspack file and item path string array (file/item, file/item...)
zipThresholdcompression threshold (0.0 - 1.0 range)
printProgressoutput packing progress to the stdout
[in]onPackFilefile packing callback, or NULL
[in]argumentfile packing callback argument, or NULL
Exceptions
Errorwith a PackResult string on failure.