Lines Matching refs:poolBundle
108 static ResFile poolBundle;
344 poolBundle.fBytes = new uint8_t[(poolFileSize + 15) & ~15];
345 if (poolFileSize > 0 && poolBundle.fBytes == NULL) {
352 int32_t bytesRead = T_FileStream_read(poolFile, poolBundle.fBytes, poolFileSize);
362 ds = udata_openSwapperForInputData(poolBundle.fBytes, bytesRead,
369 ures_swap(ds, poolBundle.fBytes, bytesRead, poolBundle.fBytes, &status);
376 header = (const DataHeader *)poolBundle.fBytes;
383 poolBundle.fIndexes = pRoot + 1;
384 indexLength = poolBundle.fIndexes[URES_INDEX_LENGTH] & 0xff;
390 int32_t keysTop = poolBundle.fIndexes[URES_INDEX_KEYS_TOP];
391 poolBundle.fKeys = (const char *)(pRoot + keysBottom);
392 poolBundle.fKeysLength = (keysTop - keysBottom) * 4;
393 poolBundle.fChecksum = poolBundle.fIndexes[URES_INDEX_POOL_CHECKSUM];
395 for (i = 0; i < poolBundle.fKeysLength; ++i) {
396 if (poolBundle.fKeys[i] == 0) {
397 ++poolBundle.fKeysCount;
404 int32_t stringUnitsLength = (poolBundle.fIndexes[URES_INDEX_16BIT_TOP] - keysTop) * 2;
406 poolBundle.fStrings = new PseudoListResource(NULL, status);
407 if (poolBundle.fStrings == NULL) {
462 poolBundle.fStrings->add(sr);
463 poolBundle.fStringIndexLimit = maxStringIndex + 1;
470 if (poolBundle.fStrings->fCount == 0) {
471 delete poolBundle.fStrings;
472 poolBundle.fStrings = NULL;
478 if (isVerbose() && poolBundle.fStrings != NULL) {
479 printf("number of shared strings: %d\n", (int)poolBundle.fStrings->fCount);
480 int32_t length = poolBundle.fStringIndexLimit + 1; // incl. last NUL
487 poolBundle.fStrings == NULL &&
529 poolBundle.close();
688 data->fUsePoolBundle = &poolBundle;