6 ms·
Not a lost art--but a dying one. Think of how many people using languages that don't care about this sort of detail. Great article though I read it a while bac
by wangchow 10y ago
Not a lost art--but a dying one. Think of how many people using languages that don't care about this sort of detail.
Great article though I read it a while back. I was thinking of sending network packets you can pack structs into a wire-format version like.
struct Position {
char x[4];
char y[4];
};
instead of:
#pragma pack(1)
struct Position {
uint32 x;
uint32 y;
};
#pragma pack()