FsCodec.Box by @jet @moneylion @amjjd @bartelink @eiriktsarpalis and contributors

<PackageReference Include="FsCodec.Box" Version="3.0.0" />

 Compression

public static class Compression
public static byte[] EncodedToByteArray(ValueTuple<int, ReadOnlyMemory<byte>> x)

public static ReadOnlyMemory<byte> EncodedToUtf8(ValueTuple<int, ReadOnlyMemory<byte>> x)

public static IEventCodec<Event, ValueTuple<int, ReadOnlyMemory<byte>>, Context> EncodeTryCompress<Event, Context>(this IEventCodec<Event, ReadOnlyMemory<byte>, Context> native, FSharpOption<CompressionOptions> options = null)

public static IEventCodec<Event, ValueTuple<int, ReadOnlyMemory<byte>>, Context> EncodeUncompressed<Event, Context>(this IEventCodec<Event, ReadOnlyMemory<byte>, Context> native)

public static IEventCodec<Event, byte[], Context> ToByteArrayCodec<Event, Context>(this IEventCodec<Event, ValueTuple<int, ReadOnlyMemory<byte>>, Context> native)

public static IEventCodec<Event, ReadOnlyMemory<byte>, Context> ToUtf8Codec<Event, Context>(this IEventCodec<Event, ValueTuple<int, ReadOnlyMemory<byte>>, Context> native)

public static ValueTuple<int, ReadOnlyMemory<byte>> Utf8ToEncodedDirect(ReadOnlyMemory<byte> x)