Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The benefit of heapalloc and heapcreate is that it makes serialization of data simpler because you can define the bounds of the heap so you can easily save pointer offsets. There are other flags available as well. It's a win32 feature so you would only use it if windows is your target platform (and then write other bindings for other platforms)


I still don't get it. Why can't you do the same with a regular buffer?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: