This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/src/GameServiceWarden.API/Communicable/Requests/RequestHeader.cs
Harrison Deng dfc54fdc00 Implemented IPC system with minimal testing.
Large naming refactoring.

Added some more tests.
2021-04-08 21:36:08 -05:00

13 lines
388 B
C#

using System;
using System.IO.Pipes;
namespace GameServiceWarden.API.Communicable.Requests
{
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));
}
}
}