Bit Shift Large Binary File?

廉价感情. 提交于 2019-12-10 23:13:38

问题


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.


回答1:


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?



来源:https://stackoverflow.com/questions/8309801/bit-shift-large-binary-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!