DecompressScript

Reconstructs a script from its compressed representation.

Synopsis

Declared in <compressor.h>

bool
DecompressScript(
    CScript& script,
    unsigned int nSize,
    CompressedScript const& in);

Return Value

true if the script was decompressed successfully.

Parameters

NameDescription
scriptOutput script filled with the decompressed bytes.
nSizeThe special script type identifier.
inThe compressed script payload.