CreateOptions.setSigBlockLen
void setSigBlockLen(DarDeltaSigBlockFunc fsFunction,
ulong multiplier = 1,
ulong divisor = 1,
uint minBlockLen = 2048,
uint maxBlockLen = 0) @safeSets the signature block length calculation parameters.
The block size used for delta signatures is calculated from file size using: block_size = multiplier/divisor * fs_function(filesize)
The result is clamped to minBlockLen, maxBlockLen (unless maxBlockLen is 0).
Parameters
fsFunction | function type for deriving block size from file size |
multiplier | function-dependent multiplier (default: 1) |
divisor | function-dependent divisor, cannot be zero (default: 1) |
minBlockLen | minimum block length in bytes (default: 2048) |
maxBlockLen | maximum block length in bytes, 0 = no limit (default: 0) |