Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为存储嵌入文件的文件格式编写一个库。
1 个文件的结尾和另一个文件的开头之间的空间不是固定大小。它是最接近的上 0x1000。例如,如果 File1 在 0xAC4654 结束,File2 将从 0xAC5000 开始。
我想不出一种方法来计算这个。
假设您只想四舍五入到最接近的 0x1000,那么以下代码就足够了:
Math.Ceiling((float)value / 0x1000) * 0x1000;
I have built a site that uses an index page which has a containing div for loading each page's content into.
At first I was including the external js files