In Delphi, I have some packed records that I'm trying to pass through a socket for convenience to reduce the amount of parsing I need to do.
TPacketHeader = packed record
I want to both write and then read this from a 'buffer'
e.g. Buffer: array[0..XXXX] of AnsiChar;
How can I do that without parsing each field manually?