The bit manips module includes bit manipulation functions (getting bits, changing bits, and copying sequences of bits) for char, short, and int.
This module is written for AGS 3.1.
The only documentation that should be necessary is in the comments of the script header file.
This module does not conform to the Script Module Guidelines; if its deviation bothers you, you can change it.
Changes:
Download (Add ".zip" to the end of the filename.)
This module is written for AGS 3.1.
The only documentation that should be necessary is in the comments of the script header file.
This module does not conform to the Script Module Guidelines; if its deviation bothers you, you can change it.
Quote from: ZH, 2009/Dec/30
I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.
In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Changes:
- v. 0.4:
- made more speed optimizations
- v. 0.3:
- added the function construct_byte
- made various speed optimizations
- v. 0.2:
- fixed the functions that copy sequences of bits
- v. 0.1:
- first version
Download (Add ".zip" to the end of the filename.)