Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Functions
UUID.cpp File Reference
#include "Globals.h"
#include "UUID.h"
#include "mbedtls/md5.h"
Include dependency graph for UUID.cpp:

Go to the source code of this file.

Classes

struct  sShortUUID
 UUID normalised in textual form. More...
 

Functions

static Byte FromHexDigit (char a_Hex)
 Returns the integer value of the hex digit or 0xff if invalid. More...
 
static sShortUUID ShortenUUID (const AString &a_StringUUID)
 Returns the given UUID in shortened form with IsValid indicating success. More...
 
static char ToHexDigit (UInt8 a_Nibble)
 From a number in the range [0, 16), returns the corresponding hex digit in lowercase. More...
 

Function Documentation

◆ FromHexDigit()

static Byte FromHexDigit ( char  a_Hex)
static

Returns the integer value of the hex digit or 0xff if invalid.

Definition at line 63 of file UUID.cpp.

◆ ShortenUUID()

static sShortUUID ShortenUUID ( const AString a_StringUUID)
static

Returns the given UUID in shortened form with IsValid indicating success.

Doesn't check digits are hexadecimal but does check dashes if long form.

Definition at line 20 of file UUID.cpp.

◆ ToHexDigit()

static char ToHexDigit ( UInt8  a_Nibble)
static

From a number in the range [0, 16), returns the corresponding hex digit in lowercase.

Definition at line 85 of file UUID.cpp.