Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
compressor.h
Go to the documentation of this file.
wrapper for CTxOut that provides a more compact serialization
Definition: compressor.h:93
bool IsToKeyID(CKeyID &hash) const
These check for scripts for which a special case with a shorter encoding is defined.
Definition: compressor.cpp:12
Definition: script.h:86
unsigned int GetSpecialSize(unsigned int nSize) const
Definition: compressor.cpp:79
static uint64_t CompressAmount(uint64_t nAmount)
Definition: compressor.cpp:142
static uint64_t DecompressAmount(uint64_t nAmount)
Definition: compressor.cpp:161
static const unsigned int nSpecialScripts
make this static for now (there are only 6 special scripts defined) this can potentially be extended ...
Definition: compressor.h:37
bool Decompress(unsigned int nSize, const std::vector< unsigned char > &out)
Definition: compressor.cpp:88
A reference to a CScript: the Hash160 of its serialization (see script.h)
Definition: standard.h:22
void SerializationOp(Stream &s, Operation ser_action)
Definition: compressor.h:107
T & REF(const T &val)
Used to bypass the rule against non-const reference to temporary where it makes sense with wrappers s...
Definition: serialize.h:50
bool IsToScriptID(CScriptID &hash) const
Definition: compressor.cpp:23
bool Compress(std::vector< unsigned char > &out) const
Definition: compressor.cpp:48