ZLibCE buffer size

Last post 05-14-2008 21:11 by luthv. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-14-2008 1:45

    • luthv
    • Top 50 Contributor
    • Joined on 03-04-2008
    • Posts 7

    ZLibCE buffer size

    Hi, I'm trying to optimize zip file writing using ZLibCE, and I want to set a larger memory buffer size for the compressed stream before it is written to the physical storage. Where do I set this value? Is there a parameter somewhere that I can change to achieve this? Thanks
  • 05-14-2008 10:18 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,868

    Re: ZLibCE buffer size

    OpenNETCF.Compression.zlibCE\src files

    zlibCE.cs, line 10:

    internal const int CHUNK = 16384; 

  • 05-14-2008 21:11 In reply to

    • luthv
    • Top 50 Contributor
    • Joined on 03-04-2008
    • Posts 7

    Re: ZLibCE buffer size

    Thanks Chris, I should have mentioned it more clearly but I'm using the minizip contrib code, do you have a C# port for this code as well? I'm a complete noob when it comes to C code, but I'm guessing from your answer that I could also set this chunk size in the
     DLL\contrib\minizip\zip.c file by changing the Z_BUFSIZE constant, is this correct?

    Thanks again 

Page 1 of 1 (3 items)