Bitcoin ABC  0.22.12
P2P Digital Currency
Classes | Functions
uint256.h File Reference
#include <cassert>
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
Include dependency graph for uint256.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  base_blob< BITS >
 Template base class for fixed-sized opaque blobs. More...
 
class  uint160
 160-bit opaque blob. More...
 
class  uint256
 256-bit opaque blob. More...
 

Functions

uint256 uint256S (const char *str)
 uint256 from const char *. More...
 
uint256 uint256S (const std::string &str)
 uint256 from std::string. More...
 
uint160 uint160S (const char *str)
 
uint160 uint160S (const std::string &str)
 
uint256UINT256_ONE ()
 

Function Documentation

◆ uint160S() [1/2]

uint160 uint160S ( const char *  str)
inline

Definition at line 149 of file uint256.h.

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

◆ uint160S() [2/2]

uint160 uint160S ( const std::string &  str)
inline

Definition at line 154 of file uint256.h.

Here is the call graph for this function:

◆ UINT256_ONE()

uint256& UINT256_ONE ( )

Definition at line 70 of file uint256.cpp.

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

◆ uint256S() [1/2]

uint256 uint256S ( const char *  str)
inline

uint256 from const char *.

This is a separate function because the constructor uint256(const char*) can result in dangerously catching uint256(0).

Definition at line 131 of file uint256.h.

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

◆ uint256S() [2/2]

uint256 uint256S ( const std::string &  str)
inline

uint256 from std::string.

This is a separate function because the constructor uint256(const std::string &str) can result in dangerously catching uint256(0) via std::string(const char*).

Definition at line 143 of file uint256.h.

Here is the call graph for this function: