Menu

class eosio::binary_extension

Class List > eosio :: binary_extension

container to hold a binary payload for an extension More...

Public Types

Type Name
typedef T value_type
typedef T value_type

Public Functions

Type Name
constexpr binary_extension ()
constexpr binary_extension (const T & ext)
constexpr binary_extension (T && ext)
~binary_extension ()
constexpr binary_extension (const binary_extension & other)
constexpr binary_extension (binary_extension && other)
constexpr operator bool () const
constexpr bool has_value () const
constexpr T & value ()
constexpr const T & value () const
constexpr binary_extension ()
constexpr binary_extension (const T & ext)
constexpr binary_extension (T && ext)
constexpr binary_extension (std::in_place_t, Args &&... args)
~binary_extension ()
constexpr binary_extension (const binary_extension & other)
constexpr binary_extension (binary_extension && other)
constexpr operator bool () const
constexpr bool has_value () const
constexpr T & value ()

Friends

Type Name
friend DataStream & operator<<
Serialize a binary_extension.
friend DataStream & operator>>
Deserialize a binary_extension.

Detailed Description

Binary Extension

Template parameters:

  • T - Contained typed

Container to hold a binary payload for an extension

Template parameters:

  • T - Contained typed

Public Types Documentation

typedef value_type

using eosio::binary_extension< T >::value_type =  T;

typedef value_type (2/2)

using eosio::binary_extension< T >::value_type =  T;

Public Functions Documentation

function binary_extension

constexpr eosio::binary_extension< T >::binary_extension()

function binary_extension

constexpr eosio::binary_extension< T >::binary_extension(
    const T & ext
)

function binary_extension

constexpr eosio::binary_extension< T >::binary_extension(
    T && ext
)

function ~binary_extension

eosio::binary_extension< T >::~binary_extension()

function binary_extension

constexpr eosio::binary_extension< T >::binary_extension(
    const binary_extension & other
)

function binary_extension

constexpr eosio::binary_extension< T >::binary_extension(
    binary_extension && other
)

function operator bool

explicit constexpr eosio::binary_extension< T >::operator bool() const

test if container is holding a value

function has_value

constexpr bool eosio::binary_extension< T >::has_value() const

test if container is holding a value

function value

constexpr T& eosio::binary_extension< T >::value()

get the contained value

function value

constexpr const T& eosio::binary_extension< T >::value() const

get the contained value

function binary_extension (6/11)

constexpr eosio::binary_extension< T >::binary_extension()

function binary_extension (7/11)

constexpr eosio::binary_extension< T >::binary_extension(
    const T & ext
)

function binary_extension (8/11)

constexpr eosio::binary_extension< T >::binary_extension(
    T && ext
)

function binary_extension (9/11)

template<typename... Args>
constexpr eosio::binary_extension< T >::binary_extension(
    std::in_place_t ,
    Args &&... args
)

construct contained type in place

function ~binary_extension (2/2)

eosio::binary_extension< T >::~binary_extension()

function binary_extension (10/11)

constexpr eosio::binary_extension< T >::binary_extension(
    const binary_extension & other
)

function binary_extension (11/11)

constexpr eosio::binary_extension< T >::binary_extension(
    binary_extension && other
)

function operator bool (2/2)

explicit constexpr eosio::binary_extension< T >::operator bool() const

test if container is holding a value

function has_value (2/2)

constexpr bool eosio::binary_extension< T >::has_value() const

test if container is holding a value

function value (3/3)

constexpr T& eosio::binary_extension< T >::value()

get the contained value

Friends Documentation

friend operator<<

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const eosio::binary_extension< T > & be
)

Serialize a binary_extension.

Serialize a binary_extension into a stream

Parameters:

  • ds - The stream to write
  • opt - The value to serialize

Template parameters:

  • DataStream - Type of datastream buffer

Returns:

DataStream& - Reference to the datastream

friend operator>>

template<typename DataStream>
DataStream& operator>>(
    DataStream & ds,
    eosio::binary_extension< T > & be
)

Deserialize a binary_extension.

Deserialize a binary_extension from a stream

Parameters:

  • ds - The stream to read
  • opt - The destination for deserialized value

Template parameters:

  • DataStream - Type of datastream buffer

Returns:

DataStream& - Reference to the datastream


The documentation for this class was generated from the following file: libraries/eosiolib/binary\_extension.hpp