Synopsis

Declared in <arith_uint256.h>

template<>
class base_uint<256>;

Member Functions

Name

Description

base_uint [constructor]

Constructors

operator=

Assignment operators

CompareTo

Numeric ordering, treating the value as an unsigned integer rather than a byte blob.

EqualTo

Tests whether the value equals a 64‐bit unsigned number.

GetHex

Hex encoding of the number (with the most significant digits first).

GetLow64

Returns the low 64 bits of the value.

ToString

Returns the value as a human‐readable string.

bits

Returns the position of the highest bit set plus one, or zero if the value is zero.

getdouble

Converts the value to a double‐precision floating‐point number.

operator&=

Applies a bitwise AND with another big integer in place.

operator*=

Multiplication assignment operators

operator++

Increment operators

operator+=

Addition assignment operators

operator‐

Returns the two's‐complement negation of the value.

operator‐‐

Decrement operators

operator‐=

Subtraction assignment operators

operator/=

Divides this value by another big integer in place.

operator<<=

Shifts the value left by the given number of bits in place.

operator>>=

Shifts the value right by the given number of bits in place.

operatorˆ=

Bitwise exclusive‐or assignment operators

operator|=

Bitwise disjunction assignment operators

operator~

Returns the bitwise complement of the value.

size

Returns the size in bytes of the internal representation.

Protected Data Members

Name

Description

pn

Big integer represented with 32‐bit digits, least‐significant first.

Friends

Name

Description

operator==

Tests whether a big integer equals a 64‐bit value.

operator<=>

Performs a three‐way comparison of two big integers.

operator==

Tests whether two big integers are equal.

operator*

Returns the product of a big integer and a 32‐bit value.

operator<<

Returns the value shifted left by a number of bits.

operator>>

Returns the value shifted right by a number of bits.

operatorˆ

Returns the bitwise XOR of two big integers.

operator&

Returns the bitwise AND of two big integers.

operator|

Returns the bitwise OR of two big integers.

operator/

Returns the quotient of two big integers.

operator*

Returns the product of two big integers.

operator‐

Returns the difference of two big integers.

operator+

Returns the sum of two big integers.

Created with MrDocs