It seems like an infinite loop is occurring in BrotliCompressor while my program is running.
I can't reproduce this exactly, but I did my best.
If you don't mind, I would appreciate it if you could check the code below.
Used MemoryPack version: 1.21.0
var buffer = new ArrayBufferWriter<byte>(256);
using var state = MemoryPackWriterOptionalStatePool.Rent(null);
var writer = new MemoryPackWriter<ArrayBufferWriter<byte>>(ref buffer, state);
var compressor = new BrotliCompressor();
var coWriter = new MemoryPackWriter<BrotliCompressor>(ref compressor, writer.OptionalState);
var bytes = new byte[249];
Random.Shared.NextBytes(bytes);
coWriter.WriteUnmanagedArray(bytes);
coWriter.Flush();
compressor.CopyTo(ref writer);
Hello!
It seems like an infinite loop is occurring in BrotliCompressor while my program is running. I can't reproduce this exactly, but I did my best. If you don't mind, I would appreciate it if you could check the code below.
Used MemoryPack version: 1.21.0