[#COMP_expand_block]
= COMP&lowbar;expand&lowbar;block
:mrdocs:

Decompress `ilen` bytes from `in` into `out` using a COMP&lowbar;CTX&period;

== Synopsis

Declared in `&lt;openssl&sol;comp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
COMP&lowbar;expand&lowbar;block(
    xref:COMP_CTX.adoc[COMP&lowbar;CTX]* ctx,
    unsigned char* out,
    int olen,
    unsigned char* in,
    int ilen);
----

== Return Value

Number of bytes written to `out,` or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Compression context (for example zlib) that performs expansion&period;
| *out*
| Destination buffer for expanded data&period;
| *olen*
| Capacity of `out` in bytes&period;
| *in*
| Compressed input bytes&period;
| *ilen*
| Number of compressed bytes at `in&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
