mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
mal_toolkit::uuid Namespace Reference

Classes

class  UUID
 UUIDv4 (random 128-bits) RFC-4122. More...
 
class  UUIDGenerator
 Generates UUIDv4 from a provided random generator (c++11 random module). std::mt19937_64 is highly recommended as it has a SIMD implementation that makes it very fast and it produces high quality randomness. More...
 

Functions

void m128itos (__m128i x, char *mem)
 Converts a 128-bits unsigned int to an UUIDv4 string representation using SIMD via AVX2.
 
__m128i stom128i (const char *mem)
 Converts an UUIDv4 string representation to a 128-bits unsigned int using SIMD via AVX2.
 

Function Documentation

◆ m128itos()

void mal_toolkit::uuid::m128itos ( __m128i x,
char * mem )
inline

Converts a 128-bits unsigned int to an UUIDv4 string representation using SIMD via AVX2.

Parameters
xThe 128-bits unsigned int to convert.
memThe output buffer to store the UUIDv4 string.

Definition at line 20 of file uuid.hpp.

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

◆ stom128i()

__m128i mal_toolkit::uuid::stom128i ( const char * mem)
inline

Converts an UUIDv4 string representation to a 128-bits unsigned int using SIMD via AVX2.

Parameters
memThe input UUIDv4 string.
Returns
The converted 128-bits unsigned int.

Definition at line 63 of file uuid.hpp.

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