Rate This Document
Findability
Accuracy
Completeness
Readability

kuaf_ctx_scheduler_create

Function Usage

Creates a ctx structure according to the algorithm type and algorithm ID.

Function Syntax

scheduler_ctx* kuaf_ctx_scheduler_create(int alg_type, int alg_id);

Parameters

Parameter

Description

Value Range

Input/Output

alg_type

Algorithm type, which is decompression.

ALG_TYPE_UNKNOWN (default), ALG_COMP (decompression)

Input

alg_id

ID of the algorithm to be used.

ALG_ID_UNKNOWN (default), ALG_ZLIB_DEFLATE (compression algorithm ID), ALG_ZLIB_INFLATE (decompression algorithm ID)

Input

Return Value

  • Success: pointer to scheduler_ctx*
  • Failure: NULL