11-14-2016, 02:12 AM
Footer consists of 9 bytes with following structure:
UniqueRoomId is a mask which consists of ServerId, ChannelId, RoomId ...
You can do like this:
[SRC="csharp"]UniqueRoomId = (serverId & 0x00000000ff) << 20 | (channelId & 0x00000000ff) << 12 | roomId & 0x0000000fff;
[/SRC]
// And use:
[SRC="csharp"]var roomId = UniqueRoomId & 0x0000000fff;
[/SRC]
Код:
// Footer (For 0x41 and 0x43 only)
// 01 00 00 00 // UniqueRoomId
// 02 00 00 00 // RoomSeed
// 00 // DedicationSlotId
// Footer
// 01 00 00 00 // UniqueRoomId
// 00 // DedicationSlotId
// 02 00 00 00 // RoomSeed
UniqueRoomId is a mask which consists of ServerId, ChannelId, RoomId ...
You can do like this:
[SRC="csharp"]UniqueRoomId = (serverId & 0x00000000ff) << 20 | (channelId & 0x00000000ff) << 12 | roomId & 0x0000000fff;
[/SRC]
// And use:
[SRC="csharp"]var roomId = UniqueRoomId & 0x0000000fff;
[/SRC]