![]()  | 
  
    BSHA3
    0.17.99
    
   P2P Blockchain, based on Bitcoin 
   | 
 
Compact serializer for scripts. More...
#include <compressor.h>
Public Member Functions | |
| CScriptCompressor (CScript &scriptIn) | |
| template<typename Stream > | |
| void | Serialize (Stream &s) const | 
| template<typename Stream > | |
| void | Unserialize (Stream &s) | 
Private Attributes | |
| CScript & | script | 
Static Private Attributes | |
| static const unsigned int | nSpecialScripts = 6 | 
| make this static for now (there are only 6 special scripts defined) this can potentially be extended together with a new nVersion for transactions, in which case this value becomes dependent on nVersion and nHeight of the enclosing transaction.  More... | |
Compact serializer for scripts.
It detects common cases and encodes them much more efficiently. 3 special cases are defined:
Other scripts up to 121 bytes require 1 byte + script length. Above that, scripts up to 16505 bytes require 2 bytes + script length.
Definition at line 36 of file compressor.h.
      
  | 
  inlineexplicit | 
Definition at line 49 of file compressor.h.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  staticprivate | 
make this static for now (there are only 6 special scripts defined) this can potentially be extended together with a new nVersion for transactions, in which case this value becomes dependent on nVersion and nHeight of the enclosing transaction.
Definition at line 45 of file compressor.h.
      
  | 
  private | 
Definition at line 47 of file compressor.h.
 1.8.14