This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MsgPack; | |
public class DataClass : IPackable, IUnpackable{ | |
public string data; | |
public int count; | |
public void UnpackFromMessage (Unpacker unpacker) | |
{ | |
unpacker.ReadInt32(out count); | |
unpacker.ReadString(out data); |