BrotliSharpLib icon indicating copy to clipboard operation
BrotliSharpLib copied to clipboard

Full C# port of Brotli compression algorithm

Results 9 BrotliSharpLib issues
Sort by recently updated
recently updated
newest added

This PR adds `Try{C,Dec}ompressBuffer` methods which take spans, and perform a single round of de/compression targeting the buffers, with an API similar to the new BCL APIs [BrotliEncoder.TryCompress](https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.brotliencoder.trycompress?view=net-5.0) and [BrotliDecoder.TryDecompress](https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.brotlidecoder.trydecompress?view=net-5.0).

Hi, I've downloaded sources, but tests in test project fail. Decompress DecompressViaStream Message: Decompressed length does not match original (alice29.txt.compressed --> alice29.txt) Expected: 148481 But was: 152089 Message: Decompressed length...

I received the following exception when decompressing brotli file with Stream method: *** {System.ExecutionEngineException: Attempting to JIT compile method '(wrapper other) void BrotliSharpLib.Brotli/BrotliDecoderStateStruct:PtrToStructure (intptr,object)' while running in aot-only mode. See...

Every now and then we get following error. Any fix that may be available to resolve this? System.OutOfMemoryException: Insufficient memory to continue the execution of the program. at System.Runtime.InteropServices.Marshal.AllocHGlobal(IntPtr cb)...

When using the current implementation of BrotliStream class in ASP.NET Core 3.0 Preview 7 web application you may receive the following error: ``` InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync...

Consider the following test application (.NET Core): ``` using System; using System.IO; using BSL = BrotliSharpLib; using System.IO.Compression; namespace BrotliTest { class Program { static void Main(string[] args) { using...

Hello, I was looking through the commits and noticed two commits: https://github.com/master131/BrotliSharpLib/commit/1c452a9fea1551c6bf80991636a17443bb13994d and https://github.com/master131/BrotliSharpLib/commit/429a82aeb97ceaf105751e2fed7c4f9ad915df66 The first one changed some code, and I'd like to ask what changes were made here,...

question

i'm using BrotliSharpLib on my project (rest api) targeting .net461 and it works ok. however, I've ported my project to .netstandard2.0 (netcoreapp2.1) and it seems not to be working correctly...

I call `Brotli.CompressBuffer(memory, 0, memory.Length)` on .NET 9.0 to compress an array of bytes and it's very slow : each call will take 100ms in average (compared to 1-2ms for...