2021-04-08 21:36:08 -05:00
|
|
|
using System;
|
|
|
|
|
2021-04-21 02:00:50 -05:00
|
|
|
namespace GameServiceWarden.InteractionAPI.Communicable.Responses
|
2021-04-08 21:36:08 -05:00
|
|
|
{
|
|
|
|
public static class ResponseHeader
|
|
|
|
{
|
|
|
|
public static byte[] Encode(CommunicableType type, uint length) {
|
|
|
|
byte[] res = new byte[sizeof(uint) + sizeof(uint)];
|
|
|
|
BitConverter.GetBytes((uint)type).CopyTo(res, 0);
|
|
|
|
BitConverter.GetBytes(length).CopyTo(res, sizeof(uint));
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|