Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Functions
uint256.h File Reference
#include <span.h>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <string>
#include <vector>
Include dependency graph for uint256.h:

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 *.
 
uint256 uint256S (const std::string &str)
 uint256 from std::string.
 
uint160 uint160S (const char *str)
 
uint160 uint160S (const std::string &str)
 

Function Documentation

◆ uint160S() [1/2]

uint160 uint160S ( const char str)
inline

Definition at line 161 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 166 of file uint256.h.

Here is the call 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 143 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 155 of file uint256.h.

Here is the call graph for this function: