Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
MyGUID Struct Reference

A global unique identifier. More...

#include <guid.h>

+ Collaboration diagram for MyGUID:

Public Member Functions

std::string base64 () const
 
void serialize (std::ostream &os) const
 
void deSerialize (std::istream &is)
 

Public Attributes

std::array< char, 16 > bytes
 

Detailed Description

A global unique identifier.

It is global because it stays valid forever. It is unique because there are no collisions.

Member Function Documentation

◆ base64()

std::string MyGUID::base64 ( ) const

References base64_encode(), and bytes.

Referenced by LuaEntitySAO::getGUID().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deSerialize()

void MyGUID::deSerialize ( std::istream & is)

References bytes.

Referenced by LuaEntitySAO::LuaEntitySAO().

+ Here is the caller graph for this function:

◆ serialize()

void MyGUID::serialize ( std::ostream & os) const

References bytes.

Referenced by LuaEntitySAO::getStaticData().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bytes

std::array<char, 16> MyGUID::bytes

Referenced by base64(), deSerialize(), and serialize().


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