Library for read/write access of binary data via structures