using H.Formatters; using MemoryPack; namespace InABox.Formatters { public class MemoryPackFormatter : FormatterBase { protected override byte[] SerializeInternal(object obj) { return MemoryPackSerializer.Serialize((T1)obj); } protected override T DeserializeInternal(byte[] bytes) { return MemoryPackSerializer.Deserialize(bytes); } } }