What alignment does HeapAlloc use

Posted by Koert on Stack Overflow See other posts from Stack Overflow or by Koert
Published on 2010-05-10T19:44:37Z Indexed on 2010/05/10 20:54 UTC
Read the original article Hit count: 960

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++