对文件进行数学计算
我正在用 C 语言编写一个用于文件压缩的程序。我尝试使用的方法涉及对文件进行数学运算,就好像它是一个长数字一样。谁能推荐一个 bignum 库,它不会尝试在 ram 中完成所有这些操作,而是让我用文件指针做数学运算。任何帮助将不胜感激,提前致谢。
I am writing a program in C for file compression. The method i am trying to use involves doing math on the file as if it were one long number. Can anyone recommend a bignum library that would not try to do all of that in ram, but rather let me do math with file pointers. any help would be appreciated, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑这样的图书馆是否存在。您可以尝试 mmap() 内存中的文件,看看是否可以这样做。
I doubt such a library exists. You could try mmap()ing the files in memory and see if you can do it that way.