-
-
Save Varriount/b35bb90a650ce03de235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc alignedBuffer(size = 4000): pointer = | |
| result = alloc0(buffer) | |
| if cast[int](result) mod 32 != 0: | |
| echo("Warning: Memory buffer not on a 32 byte boundary.") | |
| echo("Memory aligned.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment