Coder Social home page Coder Social logo

zpack's People

Watchers

 avatar

zpack's Issues

Package::insertFileHash() 中的问题。。。

函数里这一段:
u32 requireSize = m_fileEntries.size() * HASH_TABLE_SCALE;
u32 tableSize = m_hashTable.size();
if (tableSize < requireSize)
{
  //file entry hash been inserted, just rebuild hash table
  return buildHashTable();
}

是不是改成这样,始终返回true:
u32 requireSize = m_fileEntries.size() * HASH_TABLE_SCALE;
u32 tableSize = m_hashTable.size();
if (tableSize < requireSize)
{
  //file entry hash been inserted, just rebuild hash table
  buildHashTable();
  return true;
}


这样我插入文件的时候,就不会出现丢文件的情况了。
buildHashTable() 方法中常会出现hash值碰撞的情况,会返回false
不知我这样改合理么??我用zpack,只会往包里加文件,不会
减。

Original issue reported on code.google.com by [email protected] on 19 Mar 2014 at 5:32

无法在mac or ios 下使用

这个zpack相对mpq确实mini,但是,这个根本没有办法移植到mac��
�,编译了一下看了看,项目中使用大量的win下的函数如 
_fseeki64() 
_ftelli64()等。另外作者说核心的读取使用的STL,看样子是��
�以的,但是没有给出说明或指导。


Original issue reported on code.google.com by [email protected] on 18 Nov 2013 at 9:25

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.