Teamspeak 3 Server Classes

WolverinDEV

Restricted
Sep 21, 2015
42
31
62
TeamspeakString is just std::string compiled on gcc. And ... zZz
Hmm thats not actually right.
A std::string could be declared as following:
Code:
struct string {
    union {
        uint64_t length;
        uint64_t allocated;
        uintptr_t ptr;
    } _l;
    
    union {
        uint8_t flag; //7 bits length | 1 bit short flag
        char data[23];
    } _s;
    
    union {
        uint64_t data[3];
    } _r;
} //sizeof(string) = 0x18
 
Top