Added implementations of the event receive/send packets. Added lua scripting stuff. Added some utils.

This commit is contained in:
Filip Maj 2016-01-01 14:03:55 -05:00
parent d60938346b
commit 734a3f4e7f
15 changed files with 603 additions and 261 deletions

View file

@ -67,6 +67,14 @@ namespace FFXIVClassic_Lobby_Server.common
return unixTimeStamp;
}
public static uint swapEndian(uint input)
{
return ((input >> 24) & 0xff) |
((input << 8) & 0xff0000) |
((input >> 8) & 0xff00) |
((input << 24) & 0xff000000);
}
public static uint MurmurHash2(string key, uint seed)
{
// 'm' and 'r' are mixing constants generated offline.