Skip to main content

eosio::signed_int

Module: Core API / Variable Length Integer Type

More...

#include <varint.hpp>

Public Functions

Name
constexprsigned_int(int32_t v =0)

Public Attributes

Name
int32_tvalue

Detailed Description

struct eosio::signed_int;

Note: "varint32 is signed and uses Zig-Zag encoding

Variable Length Signed Integer. This provides more efficient serialization of 32-bit signed int. It serializes a 32-bit signed integer in as few bytes as possible.

Public Functions Documentation

function signed_int

inline constexpr signed_int(
int32_t v =0
)

Parameters:

  • v - Source

Construct a new signed int object

Public Attributes Documentation

variable value

int32_t value;

Contained value


Updated on 2022-12-05 at 15:38:08 +0000