Lines Matching refs:meth
18 COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) in COMP_CTX_new() argument
22 if (meth == NULL) in COMP_CTX_new()
27 ret->meth = meth; in COMP_CTX_new()
28 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new()
37 return ctx->meth; in COMP_CTX_get_method()
40 int COMP_get_type(const COMP_METHOD *meth) in COMP_get_type() argument
42 if (meth == NULL) in COMP_get_type()
44 return meth->type; in COMP_get_type()
47 const char *COMP_get_name(const COMP_METHOD *meth) in COMP_get_name() argument
49 if (meth == NULL) in COMP_get_name()
51 return meth->name; in COMP_get_name()
58 if (ctx->meth->finish != NULL) in COMP_CTX_free()
59 ctx->meth->finish(ctx); in COMP_CTX_free()
68 if (ctx->meth->compress == NULL) { in COMP_compress_block()
71 ret = ctx->meth->compress(ctx, out, olen, in, ilen); in COMP_compress_block()
84 if (ctx->meth->expand == NULL) { in COMP_expand_block()
87 ret = ctx->meth->expand(ctx, out, olen, in, ilen); in COMP_expand_block()
97 return comp->meth ? comp->meth->type : NID_undef; in COMP_CTX_get_type()