问题
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