You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.3.3 ver result length is 23.
1.0.2 ver result length is 22.
1.3.3 ver add a ZERO character at the end of the string.
This issue makes the "Porting to other languages" on blog cannot be achieved.
AS:
"
Port the compress and/or decompress methods from the version 1.0.1. All versions are binary-compatible and further versions just incorporate ugly optimizations for JavaScript, so you shouldn't bother.
Port the (de)compressToBase64 and/or (de)compressToBaseUTF16 from the latest version depending on your needs.
"
The text was updated successfully, but these errors were encountered:
This seems to happen on some corner case of the algorithm. Probably some padding when the last byte is full of bits.
The good news it that both versions are able to successfully decompress the compressed version of both versions. No issue apart from an extra character. Compression and decompression work across versions.
The bad news is that I'm too lazy to investigate this, so I'll just close the issue ;-(
when the encoding string is long enough, there will be ONE Character size difference.
for the following file:
“hello1hello2hello3hello4hello5hello6hello7hello8hello9helloAhelloBhelloChelloDhelloEhelloF”
compress("hello1hello2hello3hello4hello5hello6hello7hello8hello9helloAhelloBhelloChelloDhelloEhelloF").length()
1.3.3 ver result length is 23.
1.0.2 ver result length is 22.
1.3.3 ver add a ZERO character at the end of the string.
This issue makes the "Porting to other languages" on blog cannot be achieved.
AS:
"
Port the compress and/or decompress methods from the version 1.0.1. All versions are binary-compatible and further versions just incorporate ugly optimizations for JavaScript, so you shouldn't bother.
Port the (de)compressToBase64 and/or (de)compressToBaseUTF16 from the latest version depending on your needs.
"
The text was updated successfully, but these errors were encountered: