Electroneum
cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution Struct Reference

#include <core_rpc_server_commands_defs.h>

Collaboration diagram for cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution:

Public Member Functions

 if (this_ref.binary)
 

Public Attributes

rpc::output_distribution_data data
 
uint64_t amount
 
std::string compressed_data
 
bool binary
 
bool compress
 

Detailed Description

Definition at line 2299 of file core_rpc_server_commands_defs.h.

Member Function Documentation

◆ if()

cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::if ( this_ref.  binary)
inline

Definition at line 2311 of file core_rpc_server_commands_defs.h.

2311  {
2312  if (is_store) {
2313  if (this_ref.compress) {
2314  const_cast<std::string &>(this_ref.compressed_data) = compress_integer_array(
2315  this_ref.data.distribution);
2317  } else
2319  } else {
2320  if (this_ref.compress) {
2322  const_cast<std::vector<uint64_t> &>(this_ref.data.distribution) = decompress_integer_array<uint64_t>(
2323  this_ref.compressed_data);
2324  } else
2326  }
2327  } else
std::vector< std::uint64_t > distribution
Definition: rpc_handler.h:46
::std::string string
Definition: gtest-port.h:1097
#define KV_SERIALIZE(varialble)
#define KV_SERIALIZE_CONTAINER_POD_AS_BLOB_N(varialble, val_name)

Member Data Documentation

◆ amount

uint64_t cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::amount

Definition at line 2301 of file core_rpc_server_commands_defs.h.

◆ binary

bool cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::binary

Definition at line 2303 of file core_rpc_server_commands_defs.h.

◆ compress

bool cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::compress

Definition at line 2304 of file core_rpc_server_commands_defs.h.

◆ compressed_data

std::string cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::compressed_data

Definition at line 2302 of file core_rpc_server_commands_defs.h.

◆ data

rpc::output_distribution_data cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::data

Definition at line 2300 of file core_rpc_server_commands_defs.h.


The documentation for this struct was generated from the following file: