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

In general there doesn’t seem to be much use for pointers to specific bytes. Almost any field should be at least 32-bit aligned and when you do need an exact byte, storing an offset from the beginning of the object probably makes more sense.


Any C code which does any kind of parsing or work with buffers almost certainly uses char* as a pointer to bytes.

Interesting portability effects then arise when you have different representations for void / char vs other pointer types.




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

Search: