移位大二进制文件? [英] Bit Shift Large Binary File?

查看:72
本文介绍了移位大二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C中对大量二进制数据进行位移的最佳或推荐方法是什么?我有一个200K的二进制文件,我想先左移,然后再右移全部.

What is the best or recommended method for bit shifting a large amount of binary data in C? I have a 200K binary file and I want to left, then right shift the entire lot.

推荐答案

如果您的操作系统支持,请使用内存映射文件.然后做一点移位,它将非常非常有效率.

If your OS can support it use a memory mapped file. Then do a bit shift It'll be very very efficient.

有关更多信息,请参见以下答案:内存的优点是什么映射的文件?

See this answer for more info: What are the advantages of memory-mapped files?

这篇关于移位大二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆