GithubHelp home page GithubHelp logo

ied206 / joveler.compression Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 6.0 156.85 MB

C# pinvoke libraries for compression (zlib, xz, lz4)

C# 92.52% Batchfile 0.09% C 0.24% Shell 3.35% CMake 1.21% PowerShell 2.59%
compression pinvoke interop zlib liblzma xz deflate gz bindings

joveler.compression's People

Contributors

dependabot[bot] avatar ied206 avatar stil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

joveler.compression's Issues

How to abort in multithreading?

When the stream is in a compressed state, I call the Abort function in another thread. it will be in the Flush function and always wait for XZInit.Lib.LzmaCode return.

Error on GlobalInit

 ---> System.PlatformNotSupportedException: Unable to find native library [x64\zlibwapi.dll].

Currently having this stack when trying to globalinit with zlib. Using .net 7

Not enough memory errors

I am getting the following errors at times:

Joveler.Compression.XZ.XZException: Not enough memory

I am running on Windows x64. Is there some setting that allows me to avoid this error. I cannot catch it.

Joveler.Compression.ZLib.ZLibException: [StreamError]

Hi i am currently having problems running the ZLib tests with .net5.0. Do you have any idea what the problem could be?

Error:

Fehler Compress [27 ms]
Fehlermeldung:
Test method Joveler.Compression.ZLib.Tests.DeflateStreamTests.Compress threw exception:
Joveler.Compression.ZLib.ZLibException: [StreamError]
Stapelverfolgung:
at Joveler.Compression.ZLib.DeflateStream.Flush() in H:\Joveler.Compression-master\Joveler.Compression.ZLib\ZLibStreams.cs:line 527
at Joveler.Compression.ZLib.DeflateStream.Dispose(Boolean disposing) in H:\Joveler.Compression-master\Joveler.Compression.ZLib\ZLibStreams.cs:line 253
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at Joveler.Compression.ZLib.Tests.DeflateStreamTests.CompressTemplate(String sampleFileName, ZLibCompLevel level, Boolean useSpan) in H:\Joveler.Compression-master\Joveler.Compression.ZLib.Tests\DeflateStreamTests.cs:line 88
at Joveler.Compression.ZLib.Tests.DeflateStreamTests.Compress() in H:\Joveler.Compression-master\Joveler.Compression.ZLib.Tests\DeflateStreamTests.cs:line 41

Full test log: Tests Log.txt

nuget error NU3034

what can i do to avoid ==> Error NU3034 Package 'Joveler.DynLoader 2.1.0' from source 'https://api.nuget.org/v3/index.json': This package is signed but not by a trusted signer. Joveler.Compression.XZ C:\Users\rp_to\Source\Repos\Joveler.Compression\Joveler.Compression.XZ\Joveler.Compression.XZ.csproj 1

[Question] The xz Crc64 computation does not appear to use the correct starting point

The CRC64XZ starts with a non zero value:
https://rubydoc.info/gems/digest-crc/Digest/CRC64XZ
image

But your code seems to start with 0

namespace Joveler.Compression.XZ.Checksum
{
    #region Crc64Checksum
    public sealed class Crc64Checksum : BaseChecksum<ulong>
    {
        #region Const
        public const ulong InitCrc64 = 0;
        #endregion

This is the equivalent of a normal Crc64
https://rubydoc.info/gems/digest-crc/Digest/CRC64

Please can you explain why a Crc64 implementation in the namespace Joveler.Compression.XZ.Checksum does not perform the xz crc ?
And also update the documentation on which and how to perform the correct assumed crc64xz calculation
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.