Skip to content

Span<byte> based API #228

@yfakariya

Description

@yfakariya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires or request to feature enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions