There are only Stream based APIs in MessagePack for CLI, but following APIs looks usable:
byte[] based API. Sometimes (more often as I imagined) array based API is quite handy than stream based.
- Some people argue that
byte[] based API has much more performance than stream based.
ArraySegment<byte>, Span<byte>, and ReadOnlySpan<byte> also should be supported.
As far as I think, unified as Span<byte> for serialization and ReadOnlySpan<byte> for deserialization is reasonable.