CultPong/Assets/Scripts/MessagePack/Formatters/IMessagePackFormatter.cs
2020-09-25 07:12:38 +01:00

15 lines
399 B
C#

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);
}
}