﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-feixuwu-最新评论</title><link>http://www.cppblog.com/feixuwu/CommentsRSS.aspx</link><description>穷则独善其身，达则兼济天下。</description><language>zh-cn</language><pubDate>Mon, 02 Dec 2013 12:51:26 GMT</pubDate><lastBuildDate>Mon, 02 Dec 2013 12:51:26 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: select 和 epoll</title><link>http://www.cppblog.com/feixuwu/archive/2013/11/18/119995.html#204302</link><dc:creator>沧海笑</dc:creator><author>沧海笑</author><pubDate>Mon, 18 Nov 2013 01:52:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2013/11/18/119995.html#204302</guid><description><![CDATA[windows下select又有连接数限制<img src ="http://www.cppblog.com/feixuwu/aggbug/204302.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">沧海笑</a> 2013-11-18 09:52 <a href="http://www.cppblog.com/feixuwu/archive/2013/11/18/119995.html#204302#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 剑3资源格式分析(仅用于学习和技术研究)（二）</title><link>http://www.cppblog.com/feixuwu/archive/2013/08/19/120581.html#202650</link><dc:creator>得一帅</dc:creator><author>得一帅</author><pubDate>Mon, 19 Aug 2013 10:23:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2013/08/19/120581.html#202650</guid><description><![CDATA[PAK文件介绍<br>　　PAK文件是使用在剑网1，2，3，剑侠世界中的用来存放资源和相关游戏客户端文件的压缩文件格式。<br><br>PAK文件格式结构<br>　　PAK文件格式被组织为一个线性的数据流，它是由一个XPackFileHeader头部开始，接着就是文件数据区里面每个子文件的数据内容，紧接其后的就是XPackIndexInfo信息，每个文件对应一个XPackIndexInfo，具体分布请看图1：<br>XPackFileHeader<br>File_Data_1<br>File_Data_2<br>File_Data_3<br>.......<br>File_Data_N<br>N * XPackIndexInfo<br>　　<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>　　　　　　　　　　　　　　　　图1<br><br>数据结构以及说明<br>　　XPackIndexInfo<br>　　　　struct XPackFileHeader<br>　　　　{<br>　　　　	unsigned char	cSignature[4];		//四个字节的文件的头标志，固定为字符串'PACK'<br>　　　　	unsigned int	uCount;				//数据的条目数<br>　　　　	unsigned int	uIndexTableOffset;	    //索引的偏移量<br>　　　　	unsigned int	uDataOffset;		    //数据的偏移量<br>　　　　	unsigned int	uCrc32;				//校验和(根据索引表内容数据求得)<br>　　　　	unsigned int	uPakTime;			//打包文件制作时的时间，秒为单位time()<br>　　　　	unsigned char	cReserved[8];		    //保留的字节<br>　　　　};<br>　　<br>　　uCount：这个PAK内一共包含文件的个数。<br>　　uIndexTableOffset：文件信息XPackIndexInfo在文件中的偏移位置。<br>　　uDataOffset：文件数据区在文件的偏移。<br>　　<br>　　<br>　　XPackIndexInfo<br>　　　　<br>　　　　struct XPackIndexInfo<br>　　　　{<br>　　　　	unsigned int	uId;				    //子文件id<br>　　　　	unsigned int	uOffset;			    //子文件在包中的偏移位置<br>　　　　	unsigned int	uSize;				//子文件的原始大小<br>　　　　	unsigned int	uCompressSizeFlag;	//子文件压缩后的大小和压缩方法<br>　　　　};<br>　　　　<br>　　　　uId：是通过HASH代码得到的HASH值，是由该文件的目录决定的，并不是对文件内容进行HASH。<br>　　　　uOffset：这个偏移地址是从文件开始算起的。<br>　　　　uSize：并未压缩的文件大小。<br>　　　　uCompressSizeFlag：包含2个内容，1是压缩的标记，2是压缩后的实际大小。最高字节表示压缩标记，低的三个字节表示子文件压缩后的大小，对于分块压缩的文件，包含该文件全部分块数据，头信息数据，分块信息表等加起来的全部大小，压缩标记可以使用 uCompressSizeFlag &amp; 0xF0000000 得到，大小可以 uCompressSizeFlag &amp; 0x07FFFFFF得到。<br>　　　　<br>　　　　数据区是没有数据结构的，它只是每个文件内容经过压缩后组成的一个线性的区域，其中压缩方式有3中：<br>　　　　不压缩，压缩标记为0x00000000 表示这个文件的内容没有被压缩，如果某文件在使用UCL压缩后比原来还大，那么就不压缩了<br>　　　　UCL压缩，压缩标记为0x20000000 表示经过了UCL算法压缩，uCompressSizeFlag里的大小和uSize不相同，UCL压缩后的大小最大支持128MB。<br>子文件分块压缩，压缩标记为0x10000000 表示该文件数据是经过分块压缩，就是文件内容被分成了几块，内容为该文件全部分块数据，头信息数据，分块信息表组成<img src ="http://www.cppblog.com/feixuwu/aggbug/202650.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">得一帅</a> 2013-08-19 18:23 <a href="http://www.cppblog.com/feixuwu/archive/2013/08/19/120581.html#202650#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 推荐一个跨平台内存分配器</title><link>http://www.cppblog.com/feixuwu/archive/2013/05/17/119980.html#200361</link><dc:creator>leehark</dc:creator><author>leehark</author><pubDate>Fri, 17 May 2013 14:02:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2013/05/17/119980.html#200361</guid><description><![CDATA[在windows下怎么做堆检测呢？<img src ="http://www.cppblog.com/feixuwu/aggbug/200361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">leehark</a> 2013-05-17 22:02 <a href="http://www.cppblog.com/feixuwu/archive/2013/05/17/119980.html#200361#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 剑3资源格式分析(仅用于学习和技术研究)（二）[未登录]</title><link>http://www.cppblog.com/feixuwu/archive/2013/04/26/120581.html#199737</link><dc:creator>albert</dc:creator><author>albert</author><pubDate>Fri, 26 Apr 2013 08:38:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2013/04/26/120581.html#199737</guid><description><![CDATA[感觉就像做梦~浏览完了，就是天书~看懂了，就快升天了，自己搞定，就又回到地面了~等完全透析，就进入地狱~<img src ="http://www.cppblog.com/feixuwu/aggbug/199737.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">albert</a> 2013-04-26 16:38 <a href="http://www.cppblog.com/feixuwu/archive/2013/04/26/120581.html#199737#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Ogre初体验[未登录]</title><link>http://www.cppblog.com/feixuwu/archive/2013/04/26/127669.html#199735</link><dc:creator>albert</dc:creator><author>albert</author><pubDate>Fri, 26 Apr 2013 08:17:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2013/04/26/127669.html#199735</guid><description><![CDATA[咋这么牛叉，看代码，一看就看到本质，我老照着例子抄了，没有自己的东西~<img src ="http://www.cppblog.com/feixuwu/aggbug/199735.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">albert</a> 2013-04-26 16:17 <a href="http://www.cppblog.com/feixuwu/archive/2013/04/26/127669.html#199735#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 推荐一个跨平台内存分配器</title><link>http://www.cppblog.com/feixuwu/archive/2012/11/29/119980.html#195795</link><dc:creator>feiwu</dc:creator><author>feiwu</author><pubDate>Thu, 29 Nov 2012 06:21:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2012/11/29/119980.html#195795</guid><description><![CDATA[@gohay<br>抱歉我没说清楚。<br>你说的那个是在tcmalooc在linux下的做法。在windows下就是改写指令来处理的。<br>linux下不能挂钩，但是可以先加载来覆盖系统crtAPI，相比之下，linux下做这个更容易，linux甚至都不同编译进去就可以直接用。<img src ="http://www.cppblog.com/feixuwu/aggbug/195795.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">feiwu</a> 2012-11-29 14:21 <a href="http://www.cppblog.com/feixuwu/archive/2012/11/29/119980.html#195795#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 推荐一个跨平台内存分配器</title><link>http://www.cppblog.com/feixuwu/archive/2012/11/16/119980.html#195283</link><dc:creator>gohay</dc:creator><author>gohay</author><pubDate>Fri, 16 Nov 2012 10:06:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2012/11/16/119980.html#195283</guid><description><![CDATA[大哥，tcmalloc 不是通过API挂钩来实现无缝替换系统自带的malloc等crt函数的。<br>tcmalloc是通过静态全局变量的初始化早于main函数这个原理搞的，它定义了一个全局变量（tcmalloc.cc 文件中920行） static TCMallocGuard module_enter_exit_hook;<br>在TCMallocGuard这个类的构造函数中做了一大堆事情用来替换系统自带的malloc等crt函数<img src ="http://www.cppblog.com/feixuwu/aggbug/195283.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">gohay</a> 2012-11-16 18:06 <a href="http://www.cppblog.com/feixuwu/archive/2012/11/16/119980.html#195283#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: PSP版本Bookr修改支持中文</title><link>http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193153</link><dc:creator>ALAN QI</dc:creator><author>ALAN QI</author><pubDate>Thu, 11 Oct 2012 02:44:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193153</guid><description><![CDATA[@ALAN QI<br> <br>qmgs@hotmail.com<img src ="http://www.cppblog.com/feixuwu/aggbug/193153.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">ALAN QI</a> 2012-10-11 10:44 <a href="http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193153#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: PSP版本Bookr修改支持中文</title><link>http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193152</link><dc:creator>ALAN QI</dc:creator><author>ALAN QI</author><pubDate>Thu, 11 Oct 2012 02:40:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193152</guid><description><![CDATA[特别想用BOOKR 看中文，我在国外，楼主可否将您的修改版本发到我的邮箱，qmgs@hotmai.com .您上传的附件连接我无法下载。 我可能是你的第一个PS VITA 中文BOOKR 测试者<img src ="http://www.cppblog.com/feixuwu/aggbug/193152.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">ALAN QI</a> 2012-10-11 10:40 <a href="http://www.cppblog.com/feixuwu/archive/2012/10/11/121324.html#193152#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 项目开发中的一些思考</title><link>http://www.cppblog.com/feixuwu/archive/2012/02/19/165779.html#165984</link><dc:creator>feixuwu</dc:creator><author>feixuwu</author><pubDate>Sun, 19 Feb 2012 08:29:00 GMT</pubDate><guid>http://www.cppblog.com/feixuwu/archive/2012/02/19/165779.html#165984</guid><description><![CDATA[在游戏开发领域，按照组件开发这种模式，在很多项目都实施过了，本人也参与过一些。不是理论上的泛泛而谈，实施上和设计上都不存在难点了。<br><br>游戏领域的需求变更是常事，基本上每几天一变都可能，甚至还没做完就在变了，这个和传统项目完全不同，对开发者是有一定要求的。<br><br>内存管理这块通用的内存优化方案确实是不需要开发者参与了(当然，也固定了优化模式，不可能是对象池)，无论是多线程还是单线程，性能都会有很大的提升。<img src ="http://www.cppblog.com/feixuwu/aggbug/165984.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/feixuwu/" target="_blank">feixuwu</a> 2012-02-19 16:29 <a href="http://www.cppblog.com/feixuwu/archive/2012/02/19/165779.html#165984#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>