Raven Core
3.0.0
P2P Digital Currency
|
Template base class for fixed-sized opaque blobs. More...
#include <uint256.h>
Public Member Functions | |
base_blob () | |
base_blob (const std::vector< unsigned char > &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 |
unsigned char * | begin () |
unsigned char * | end () |
const unsigned char * | begin () const |
const unsigned char * | end () const |
unsigned int | size () const |
uint64_t | GetUint64 (int pos) const |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
Protected Types | |
enum | { WIDTH =BITS/8 } |
Protected Attributes | |
uint8_t | data [WIDTH] |
Friends | |
bool | operator== (const base_blob &a, const base_blob &b) |
bool | operator!= (const base_blob &a, const base_blob &b) |
bool | operator< (const base_blob &a, const base_blob &b) |
Template base class for fixed-sized opaque blobs.
|
protected |
|
explicit |
Definition at line 15 of file uint256.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
std::string base_blob< BITS >::GetHex | ( | ) | const |
|
inline |
|
inline |
|
inline |
void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 57 of file uint256.cpp.
|
inline |
|
inline |
std::string base_blob< BITS >::ToString | ( | ) | const |
|
inline |