Add message sending to server

This commit is contained in:
Damian Korczowski
2021-03-15 20:28:41 +01:00
parent 77461e45c0
commit a90b3bd7f6
6 changed files with 60 additions and 3 deletions

View File

@@ -1,17 +1,19 @@
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
namespace FlaxEngine.Networking
{
public unsafe partial struct NetworkMessage
{
public void WriteBytes(byte* bytes, int length)
{
// TODO
Utils.MemoryCopy(new IntPtr(bytes), new IntPtr(Buffer), length);
}
public void ReadBytes(byte* buffer, int length)
{
// TODO
Utils.MemoryCopy(new IntPtr(Buffer), new IntPtr(buffer), length);
}
public void WriteUInt32(uint value)