- struct lbx_state *new = NULL;
- struct lbx_state tmp = { .mem = _mem, .memsize = size };
- uint16_t nfiles, version;
- uint32_t magic;
-
- if (_lbx_memcpy(&nfiles, &tmp, sizeof nfiles) == -1) goto eof;
- if (_lbx_memcpy(&magic, &tmp, sizeof magic) == -1) goto eof;
- if (_lbx_memcpy(&version, &tmp, sizeof version) == -1) goto eof;
-
- nfiles = letohs(nfiles);
- magic = letohl(magic);
- version = letohs(version);