IoTeX client
Public Member Functions | List of all members
iotex::bignum::Bignum Class Reference

Represents an unigned integer of up to 256 bytes. More...

#include <bignum.h>

Public Member Functions

 Bignum ()
 Default constructor. Constructs a Bignum with the value of 0.
 
 Bignum (const char *str, NumericBase base)
 Constructs a Bignum from a string value. More...
 
IotexString ToString (NumericBase base) const
 Returns the value as a string. More...
 
Bignumoperator= (const Bignum &bignum)
 
bool operator== (const Bignum &c) const
 

Detailed Description

Represents an unigned integer of up to 256 bytes.

Constructor & Destructor Documentation

◆ Bignum()

Bignum::Bignum ( const char *  str,
NumericBase  base 
)

Constructs a Bignum from a string value.

Parameters
strThe value.
baseThe numeric base of the string (Decimal or Hexadecimal).

Member Function Documentation

◆ ToString()

IotexString Bignum::ToString ( NumericBase  base) const

Returns the value as a string.

Parameters
baseThe numeric base to use (Decimal or Hexadecimal).

The documentation for this class was generated from the following files: