C++/Go Packed Structures Part 1
Now, this is a mess. Imagine you have this kind of structure in C++: struct __attribute__((packed, aligned(1)))) packed { char a; char *b; int c; }; This tells the compiler…
Now, this is a mess. Imagine you have this kind of structure in C++: struct __attribute__((packed, aligned(1)))) packed { char a; char *b; int c; }; This tells the compiler…
In the previous post, I wrote about a wrapper that could be compiled and linked into a Go program which accessed a shared/dynamic library. I'm going to follow up with…