Lines Matching refs:data
286 * Un flatten shared data from a UDATA..
294 UConverterSharedData *data;
310 data = (UConverterSharedData *)uprv_malloc(sizeof(UConverterSharedData));
311 if(data == nullptr) {
317 uprv_memcpy(data, converterData[type], sizeof(UConverterSharedData));
319 data->staticData = source;
321 data->sharedDataCached = false;
323 /* fill in fields from the loaded data */
324 data->dataMemory = (void*)pData; /* for future use */
326 if(data->impl->load != nullptr) {
327 data->impl->load(data, pArgs, raw + source->structSize, status);
329 uprv_free(data);
333 return data;
342 UDataMemory *data;
354 data = udata_openChoice(pArgs->pkg, DATA_TYPE, pArgs->name, isCnvAcceptable, nullptr, err);
361 sharedData = ucnv_data_unFlattenClone(pArgs, data, err);
364 udata_close(data);
370 * TODO Store pkg in a field in the shared data so that delta-only converters
421 * the shared data hash table should be. When on small platforms, or just a couple
429 /* Puts the shared data in the static hashtable SHARED_DATA_HASHTABLE */
432 /* Stores the shared data in the SHARED_DATA_HASHTABLE
433 * @param data The shared data
436 ucnv_shareConverterData(UConverterSharedData * data)
456 sanity = ucnv_getSharedConverterData (data->staticData->name);
459 UCNV_DEBUG_LOG("put:overwrite!",data->staticData->name,sanity);
461 UCNV_DEBUG_LOG("put:chk",data->staticData->name,sanity);
465 data->sharedDataCached = true;
468 (void*) data->staticData->name, /* Okay to cast away const as long as
470 data,
472 UCNV_DEBUG_LOG("put", data->staticData->name,data);
476 /* Look up a converter name in the shared data cache. */
478 /* gets the shared data from the SHARED_DATA_HASHTABLE (might return nullptr if it isn't there)
479 * @param name The name of the shared data
480 * @return the shared data from the SHARED_DATA_HASHTABLE
503 /* Deletes (frees) the Shared data it's passed. first it checks the referenceCounter to
507 * @param sharedConverterData The shared data
515 UTRACE_DATA2(UTRACE_OPEN_CLOSE, "unload converter %s shared data %p", deadSharedData->staticData->name, deadSharedData);
528 UDataMemory *data = (UDataMemory*)deadSharedData->dataMemory;
529 udata_close(data);
572 /* The data for this converter was already in the cache. */
573 /* Update the reference counter on the shared data: one more client */
706 * -we either go to get data from disk and cache it (Data=true, Cached=false)
801 /* get the shared data for an algorithmic converter, if it is one */
807 /* it is a data-based converter, get its shared data. */
809 /* converter data cache, and adding new entries to the cache */
949 /* open the data, unflatten the shared structure */
1045 /*if shared data hasn't even been lazy evaluated yet
1067 * shared data; the first iteration of the outer loop may see the delta converter
1319 /* data swapping ------------------------------------------------------------ */
1360 /* check data format and format version */
1370 udata_printError(ds, "ucnv_swap(): data format %02x.%02x.%02x.%02x (format version %02x.%02x) is not recognized as an ICU .cnv conversion table\n",
1400 /* swap the static data */
1426 /* swap MBCS data */
1488 /* calculate the length of the MBCS data */
1514 /* there is extension data after the base data, see ucnv_ext.h */
1516 udata_printError(ds, "ucnv_swap(): too few bytes (%d after headers) for an ICU MBCS .cnv conversion table with extension data\n",
1534 /* copy the data for inaccessible bytes */
1547 * contains a base name instead of normal base table data
1550 /* swap the base name, between the header and the extension data */
1556 /* normal file with base table data */
1631 /* swap the extension data */