Skip to main content

NewAlgorithmOption

Wraps the Algorithm into an AlgorithmOption to pass to the encoding functions.

def NewAlgorithmOption(
algo: Algorithm
) - > AlgorithmOption

Wraps the provided Algorithm into an AlgorithmOption, which is used to pass algorithm configurations to encoding functions.

Parameters

NameTypeDescription
algoAlgorithmThe Algorithm to be wrapped into an AlgorithmOption. This defines the specific algorithm to be used in encoding operations.

Returns

TypeDescription
AlgorithmOptionAn AlgorithmOption containing the specified algorithm.