Lines Matching refs:mpHeader
46 if (mpHeader) { free(mpHeader); }
131 mpHeader = (OBCC_Header *)malloc(sizeof(OBCC_Header));
132 if (!mpHeader) {
137 if (mInfoFile->read((char *)mpHeader, sizeof(OBCC_Header)) !=
145 if (mpHeader->libRS_threadable) {
154 if (memcmp(mpHeader->magic, OBCC_MAGIC, 4) != 0) {
159 if (memcmp(mpHeader->version, OBCC_VERSION, 4) != 0) {
160 mpHeader->version[4 - 1] = '\0'; // ensure c-style string terminated
162 OBCC_VERSION, mpHeader->version);
173 if ((isLittleEndian && mpHeader->endianness != 'e') ||
174 (!isLittleEndian && mpHeader->endianness != 'E')) {
179 if ((unsigned int)mpHeader->sizeof_off_t != sizeof(off_t) ||
180 (unsigned int)mpHeader->sizeof_size_t != sizeof(size_t) ||
181 (unsigned int)mpHeader->sizeof_ptr_t != sizeof(void *)) {
193 off_t offset = mpHeader-> NAME##_offset; \
194 off_t size = (off_t)mpHeader-> NAME##_size; \
223 if ((uintptr_t)mpHeader->context_cached_addr % pagesize != 0) {
233 TYPE *NAME##_raw = (TYPE *)malloc(mpHeader->NAME##_size); \
243 if (mInfoFile->seek(mpHeader->NAME##_offset, SEEK_SET) == -1) { \
249 mpHeader->NAME##_size) != (ssize_t)mpHeader->NAME##_size) \
407 ContextManager::get().allocateContext(mpHeader->context_cached_addr,
424 uint32_t sum = mpHeader->context_parity_checksum;