|
| FixedHash () |
| Construct an empty hash. More...
|
|
template<unsigned M> |
| FixedHash (FixedHash< M > const &_h, ConstructFromHashType _t=AlignLeft) |
| Construct from another hash, filling with zeroes or cropping as necessary. More...
|
|
| FixedHash (Arith const &_arith) |
| Convert from the corresponding arithmetic type. More...
|
|
| FixedHash (unsigned _u) |
| Convert from unsigned. More...
|
|
| FixedHash (bytes const &_b, ConstructFromHashType _t=FailIfDifferent) |
| Explicitly construct, copying from a byte array. More...
|
|
| FixedHash (bytesConstRef _b, ConstructFromHashType _t=FailIfDifferent) |
| Explicitly construct, copying from a byte array. More...
|
|
| FixedHash (::byte const *_bs, ConstructFromPointerType) |
| Explicitly construct, copying from a bytes in memory with given pointer. More...
|
|
| FixedHash (std::string const &_s, ConstructFromStringType _t=FromHex, ConstructFromHashType _ht=FailIfDifferent) |
| Explicitly construct, copying from a string. More...
|
|
| operator Arith () const |
| Convert to arithmetic type. More...
|
|
| operator bool () const |
|
bool | operator== (FixedHash const &_c) const |
|
bool | operator!= (FixedHash const &_c) const |
|
bool | operator< (FixedHash const &_c) const |
|
bool | operator>= (FixedHash const &_c) const |
|
bool | operator<= (FixedHash const &_c) const |
|
bool | operator> (FixedHash const &_c) const |
|
FixedHash & | operator^= (FixedHash const &_c) |
|
FixedHash | operator^ (FixedHash const &_c) const |
|
FixedHash & | operator|= (FixedHash const &_c) |
|
FixedHash | operator| (FixedHash const &_c) const |
|
FixedHash & | operator&= (FixedHash const &_c) |
|
FixedHash | operator& (FixedHash const &_c) const |
|
FixedHash | operator~ () const |
|
FixedHash & | operator++ () |
|
bool | contains (FixedHash const &_c) const |
|
::byte & | operator[] (unsigned _i) |
|
::byte | operator[] (unsigned _i) const |
|
std::string | abridged () const |
|
std::string | abridgedMiddle () const |
|
std::string | hex () const |
|
std::string | toString () const |
|
bool | isZero () const |
|
bytesRef | ref () |
|
bytesConstRef | ref () const |
|
::byte * | data () |
|
::byte const * | data () const |
|
auto | begin () const -> typename std::array<::byte, N >::const_iterator |
|
auto | end () const -> typename std::array<::byte, N >::const_iterator |
|
bytes | asBytes () const |
|
std::array<::byte, N > & | asArray () |
|
std::array<::byte, N > const & | asArray () const |
|
template<class Engine > |
void | randomize (Engine &_eng) |
| Populate with random data. More...
|
|
template<unsigned P, unsigned M> |
FixedHash & | shiftBloom (FixedHash< M > const &_h) |
|
template<unsigned P, unsigned M> |
bool | containsBloom (FixedHash< M > const &_h) |
|
template<unsigned P, unsigned M> |
FixedHash< M > | bloomPart () const |
|
unsigned | firstBitSet () const |
|
void | clear () |
|
bool | operator== (FixedHash< 32 > const &_other) const |
| Fast equality operator for h256. More...
|
|
template<unsigned N>
class dev::FixedHash< N >
Fixed-size raw-byte array container type, with an API optimised for storing hashes. Transparently converts to/from the corresponding arithmetic type; this will assume the data contained in the hash is big-endian.