mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Exception while brotliDecode in decode.ts #468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcdis on GitHub (Jul 10, 2023).
Error: Exuberant nibble
at decodeMetaBlockLength (decode.ts:209:1)
Origin data (hex string) (357 bytes):
Compressed using BrotliSteam / C#. Decompressing successfully. Uncompressed size: 1009
@eustas commented on GitHub (Jul 10, 2023):
Tried to turn "origin data" to brotli file and got corrupted files both interpreting this string LE and BE.
Could you attach compressed file either base64 encoded or as a file (drag-n-drop to comment). Thanks.
@mcdis commented on GitHub (Jul 10, 2023):
welcome.txt
welcome_br2.txt
welcome_br2_restored.txt
welcome.txt- originalwelcome_br2.txt- brotli compressedwelcome_br2_restored.txt- restored version after decompress compressedIt's very strange, but in C# the last dot symbol is lost when unpacking, but there are no errors
encode:
decode:
@mcdis commented on GitHub (Jul 10, 2023):
C# implementation uses quality = 11, window = 22 for Brotli
@eustas commented on GitHub (Jul 10, 2023):
CLI tool confirms that
welcome_br2.txtis truncated. Not sure what is C# brotli library (its source code is not in this repository). Don't know what are C# syntax / semantics as well, but I'd try the following snippet for encoding:@MichalPetryka commented on GitHub (Jul 31, 2023):
C# has brotli built-in into the base framework, it uses the latest Brotli release for it.