3 ms·
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 by
by akvadrako 7y ago
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.
- barrkel 7y agoAny 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.