In order words, I don't know what I should use to read and write a set of bytes in Lua and I don't know how to represent C or Pascal structures.