vipsbpig / zpack Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/zpack
Automatically exported from code.google.com/p/zpack
函数里这一段:
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
这个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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.