BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Functions
compressor.h File Reference
#include <primitives/transaction.h>
#include <script/script.h>
#include <serialize.h>
#include <span.h>
Include dependency graph for compressor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CScriptCompressor
 Compact serializer for scripts. More...
 
class  CTxOutCompressor
 wrapper for CTxOut that provides a more compact serialization More...
 

Functions

bool CompressScript (const CScript &script, std::vector< unsigned char > &out)
 
unsigned int GetSpecialScriptSize (unsigned int nSize)
 
bool DecompressScript (CScript &script, unsigned int nSize, const std::vector< unsigned char > &out)
 
uint64_t CompressAmount (uint64_t nAmount)
 
uint64_t DecompressAmount (uint64_t nAmount)
 

Function Documentation

◆ CompressAmount()

uint64_t CompressAmount ( uint64_t  nAmount)

Definition at line 150 of file compressor.cpp.

Here is the caller graph for this function:

◆ CompressScript()

bool CompressScript ( const CScript script,
std::vector< unsigned char > &  out 
)

Definition at line 56 of file compressor.cpp.

Here is the caller graph for this function:

◆ DecompressAmount()

uint64_t DecompressAmount ( uint64_t  nAmount)

Definition at line 169 of file compressor.cpp.

Here is the caller graph for this function:

◆ DecompressScript()

bool DecompressScript ( CScript script,
unsigned int  nSize,
const std::vector< unsigned char > &  out 
)

Definition at line 96 of file compressor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSpecialScriptSize()

unsigned int GetSpecialScriptSize ( unsigned int  nSize)

Definition at line 87 of file compressor.cpp.

Here is the caller graph for this function: