CultPong/Assets/Scripts/MessagePack/Formatters/IMessagePackFormatter.cs

15 lines
399 B
C#
Raw Permalink Normal View History


namespace MessagePack.Formatters
{
// marker
public interface IMessagePackFormatter
{
}
public interface IMessagePackFormatter<T> : IMessagePackFormatter
{
int Serialize(ref byte[] bytes, int offset, T value, IFormatterResolver formatterResolver);
T Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize);
}
}