2021-04-08 21:36:08 -05:00
|
|
|
using System;
|
|
|
|
using System.IO.Pipes;
|
|
|
|
|
2021-04-21 02:00:50 -05:00
|
|
|
namespace GameServiceWarden.InteractionAPI.Communicable.Requests
|
2021-04-08 21:36:08 -05:00
|
|
|
{
|
|
|
|
public static class RequestHeader
|
|
|
|
{
|
|
|
|
public static void Decode(byte[] header, out CommunicableType type, out uint length) {
|
|
|
|
type = (CommunicableType) BitConverter.ToUInt32(header, 0);
|
|
|
|
length = BitConverter.ToUInt32(header, sizeof(uint));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|