MDBX Containers
Loading...
Searching...
No Matches
SimpleStruct Struct Reference

Public Member Functions

 SimpleStruct ()=default
 
 SimpleStruct (int x_, float y_)
 
std::vector< uint8_t > to_bytes () const
 
bool operator== (const SimpleStruct &other) const
 

Static Public Member Functions

static SimpleStruct from_bytes (const void *data, size_t size)
 

Public Attributes

int x {}
 
float y {}
 

Detailed Description

Definition at line 83 of file kv_container_all_types_test.cpp.

Constructor & Destructor Documentation

◆ SimpleStruct() [1/2]

SimpleStruct::SimpleStruct ( )
default

◆ SimpleStruct() [2/2]

SimpleStruct::SimpleStruct ( int x_,
float y_ )
inline

Definition at line 88 of file kv_container_all_types_test.cpp.

Member Function Documentation

◆ from_bytes()

static SimpleStruct SimpleStruct::from_bytes ( const void * data,
size_t size )
inlinestatic

Definition at line 96 of file kv_container_all_types_test.cpp.

◆ operator==()

bool SimpleStruct::operator== ( const SimpleStruct & other) const
inline

Definition at line 105 of file kv_container_all_types_test.cpp.

◆ to_bytes()

std::vector< uint8_t > SimpleStruct::to_bytes ( ) const
inline

Definition at line 90 of file kv_container_all_types_test.cpp.

Member Data Documentation

◆ x

int SimpleStruct::x {}

Definition at line 84 of file kv_container_all_types_test.cpp.

◆ y

float SimpleStruct::y {}

Definition at line 85 of file kv_container_all_types_test.cpp.


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