CompressScript

Compresses a script into the compact on-disk representation.

Synopsis

Declared in <compressor.h>

bool
CompressScript(
    CScript const& script,
    CompressedScript& out);

Return Value

true if the script matched a special compressed form.

Parameters

NameDescription
scriptThe script to compress.
outOutput buffer that receives the compressed script.