Bitcoin ABC 0.30.7
P2P Digital Currency
Public Member Functions | Static Public Attributes | List of all members
uint256 Class Reference

256-bit opaque blob. More...

#include <uint256.h>

Inheritance diagram for uint256:
[legend]
Collaboration diagram for uint256:
[legend]

Public Member Functions

constexpr uint256 ()
 
constexpr uint256 (uint8_t v)
 
 uint256 (const std::vector< uint8_t > &vch)
 
- Public Member Functions inherited from base_blob< 256 >
constexpr base_blob ()
 
constexpr base_blob (uint8_t v)
 
 base_blob (const std::vector< uint8_t > &vch)
 
bool IsNull () const
 
void SetNull ()
 
int Compare (const base_blob &other) const
 
std::string GetHex () const
 
void SetHex (const char *psz)
 
void SetHex (const std::string &str)
 
std::string ToString () const
 
const uint8_t * data () const
 
uint8_t * data ()
 
uint8_t * begin ()
 
const uint8_t * begin () const
 
uint8_t * end ()
 
const uint8_t * end () const
 
unsigned int size () const
 
uint64_t GetUint64 (int pos) const
 
void Serialize (Stream &s) const
 
void Unserialize (Stream &s)
 

Static Public Attributes

static const uint256 ZERO
 
static const uint256 ONE
 

Additional Inherited Members

- Protected Attributes inherited from base_blob< 256 >
uint8_t m_data [WIDTH]
 
- Static Protected Attributes inherited from base_blob< 256 >
static constexpr int WIDTH
 

Detailed Description

256-bit opaque blob.

Note
This type is called uint256 for historical reasons only. It is an opaque blob of 256 bits and has no integer operations. Use arith_uint256 if those are required.

Definition at line 129 of file uint256.h.

Constructor & Destructor Documentation

◆ uint256() [1/3]

constexpr uint256::uint256 ( )
inlineconstexpr

Definition at line 131 of file uint256.h.

◆ uint256() [2/3]

constexpr uint256::uint256 ( uint8_t  v)
inlineexplicitconstexpr

Definition at line 132 of file uint256.h.

◆ uint256() [3/3]

uint256::uint256 ( const std::vector< uint8_t > &  vch)
inlineexplicit

Definition at line 133 of file uint256.h.

Member Data Documentation

◆ ONE

const uint256 uint256::ONE
static

Definition at line 135 of file uint256.h.

◆ ZERO

const uint256 uint256::ZERO
static

Definition at line 134 of file uint256.h.


The documentation for this class was generated from the following files: