struct eosio::unsigned_int

Class List > eosio :: unsigned_int

Public Attributes

Type Name
uint32_t value

Public Functions

Type Name
unsigned_int (uint32_t v = 0)
unsigned_int (T v)
operator T () const

Detailed Description

Variable Length Unsigned Integer. This provides more efficient serialization of 32-bit unsigned int. It serialuzes a 32-bit unsigned integer in as few bytes as possible varuint32 is unsigned and uses VLQ or Base-128 encoding

Public Attributes Documentation

variable value

uint32_t eosio::unsigned_int::value;

Contained value

Public Functions Documentation

function unsigned_int (1/2)

eosio::unsigned_int::unsigned_int(
    uint32_t v = 0
)

Construct a new unsigned int object

Parameters:

  • v - Source

function unsigned_int (2/2)

template<typename T>
eosio::unsigned_int::unsigned_int(
    T v
)

Construct a new unsigned int object from a type that is convertible to uint32_t

Template parameters:

  • T - Type of the source

Parameters:

  • v - Source

Precondition:

T must be convertible to uint32_t

function operator T

template<typename T>
eosio::unsigned_int::operator T() const

Convert unsigned_int as T

Template parameters:

  • T - Target type of conversion

Returns:

T - Converted target


The documentation for this class was generated from the following file: libraries/eosiolib/core/eosio/varint.hpp