On 17 August 2016 at 13:44, Mathew Heard <ma...@gmail.com> wrote:
> Lets say I have string returned from sock:receive() (or anything) and a C
> like definition:
>
> struct packet_format {
> uint32_t field1;
> uint16_t blah2;
> char[12] str;
> ... etc
> }
>
>
> How would I cleanly go about parsing it?
that's clearly a job for the FFI
--
Javier