What alignment does HeapAlloc use
- by Koert
I'm developing a general purpose library which uses Win32's HeapAlloc
MSDN doesn't mention alignment guarantees for Win32's HeapAlloc, but I really need to know what alignment it uses, so I can avoid excessive padding.
On my machine (vista, x86), all allocations are aligned at 8 bytes. Is this true for other platforms as well?