| 2004 | #define mxArchiveHeaderSize (sizeof(Atom) + sizeof(Atom) + XS_VERSION_SIZE + sizeof(Atom) + XS_DIGEST_SIZE) |
| 2005 | |
| 2006 | static txU1 *fxGetArchiveModules(txMachine *the, void* archive, txU4 *size) |
| 2007 | { |
| 2008 | txPreparation* preparation = the->preparation; |
| 2009 | txU1* p = archive; |
| 2010 | if (!preparation || !p) { |
| 2011 | *size = 0; |
| 2012 | return NULL; |
| 2013 | } |
| 2014 | p += mxArchiveHeaderSize; |
| 2015 | // NAME |
| 2016 | p += c_read32be(p); |
| 2017 | // SYMB |
| 2018 | p += c_read32be(p); |
| 2019 | // IDEN |
| 2020 | p += c_read32be(p); |
| 2021 | // MAPS |
| 2022 | p += c_read32be(p); |
| 2023 | // MODS |
| 2024 | *size = c_read32be(p) - sizeof(Atom); |
| 2025 | return p + sizeof(Atom); |
| 2026 | } |
| 2027 | |
| 2028 | void* fxGetArchiveCode(txMachine* the, void* archive, txString path, size_t* size) |
| 2029 | { |
no outgoing calls
no test coverage detected