Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
uuid.cpp File Reference

The file containing MinecraftUUID logic. More...

#include "uuid.h"
#include <utils/crypto.h>
#include <vector>
#include <algorithm>
#include <sstream>
#include <iomanip>

Functions

char hexDigitToChar (char ch)
 Convert one character to byte value in Base64 format.
 
bool isValidHexChar (char ch)
 Check whether the character is a valid Base64 character.
 
unsigned char hexPairToChar (char a, char b)
 Converts two chars to one byte.
 

Detailed Description

The file containing MinecraftUUID logic.

Author
Lygaen
Version
0.1
Date
2023-12-16

Function Documentation

◆ hexDigitToChar()

char hexDigitToChar ( char ch)

Convert one character to byte value in Base64 format.

Parameters
chthe character
Returns
char the value

◆ hexPairToChar()

unsigned char hexPairToChar ( char a,
char b )

Converts two chars to one byte.

Parameters
athe first char
bthe second char
Returns
unsigned char the byte value

◆ isValidHexChar()

bool isValidHexChar ( char ch)

Check whether the character is a valid Base64 character.

Parameters
chthe character to check
Returns
true the character is valid
false the character is not valid