Electroneum
Loading...
Searching...
No Matches
cryptonote::tx_extra_padding Struct Reference

#include <tx_extra.h>

Public Member Functions

template<template< bool > class Archive>
bool do_serialize (Archive< false > &ar)
template<template< bool > class Archive>
bool do_serialize (Archive< true > &ar)

Public Attributes

size_t size

Detailed Description

Definition at line 53 of file tx_extra.h.

Member Function Documentation

◆ do_serialize() [1/2]

template<template< bool > class Archive>
bool cryptonote::tx_extra_padding::do_serialize ( Archive< false > & ar)
inline

Definition at line 59 of file tx_extra.h.

60 {
61 // size - 1 - because of variant tag
63 {
64 std::ios_base::iostate state = ar.stream().rdstate();
65 bool eof = EOF == ar.stream().peek();
66 ar.stream().clear(state);
67
68 if (eof)
69 break;
70
72 if (!::do_serialize(ar, zero))
73 return false;
74
75 if (0 != zero)
76 return false;
77 }
78
80 }
key zero()
Definition rctOps.h:70
unsigned char uint8_t
Definition stdint.h:124
bool do_serialize(Archive< false > &ar)
Definition tx_extra.h:59
#define TX_EXTRA_PADDING_MAX_COUNT
Definition tx_extra.h:35
Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_serialize() [2/2]

template<template< bool > class Archive>
bool cryptonote::tx_extra_padding::do_serialize ( Archive< true > & ar)
inline

Definition at line 84 of file tx_extra.h.

85 {
87 return false;
88
89 // i = 1 - because of variant tag
90 for (size_t i = 1; i < size; ++i)
91 {
92 uint8_t zero = 0;
93 if (!::do_serialize(ar, zero))
94 return false;
95 }
96 return true;
97 }
Here is the call graph for this function:

Member Data Documentation

◆ size

size_t cryptonote::tx_extra_padding::size

Definition at line 55 of file tx_extra.h.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/cryptonote_basic/tx_extra.h