Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created November 28, 2020 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/fb91d1189e9f326227111bea3cfdee7d to your computer and use it in GitHub Desktop.
Save Whateverable/fb91d1189e9f326227111bea3cfdee7d to your computer and use it in GitHub Desktop.
Whateverable
2020-11-27T22:13:43Z #moarvm <jnthn> MasterDuke probably best is to have a `struct` that contains the metadata, and then sizeof(that_struct) + n * repr_data->elem_size, however you may need to worry about alignment on some platforms (32-bit ones that want an array of 64-bit integers or doubles aligned to 8 byte boundaries)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment