• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/tools/icuswap/

Lines Matching defs:table

351     ToCEntry *table;
429 /* check that the itemCount fits, then the ToC table, then at least the header of the last item */
440 /* ToC table does not fit */
505 * Allocate the ToC table and, if necessary, a temporary buffer for
515 * not only the ToC table but also the data items themselves.
523 table=(ToCEntry *)uprv_malloc(itemCount*sizeof(ToCEntry)+length+DEFAULT_PADDING_LENGTH);
524 if(table!=NULL) {
525 outBytes=(uint8_t *)(table+itemCount);
532 table=(ToCEntry *)uprv_malloc(itemCount*sizeof(ToCEntry));
534 if(table==NULL) {
544 /* read the ToC table */
546 table[i].nameOffset=ds->readUInt32(inEntries[i].nameOffset);
547 table[i].inOffset=ds->readUInt32(inEntries[i].dataOffset);
549 table[i-1].length=table[i].inOffset-table[i-1].inOffset;
552 table[itemCount-1].length=(uint32_t)length-table[itemCount-1].inOffset;
557 table[i].outOffset=table[i].inOffset;
576 table[itemCount-1].length+=(uint32_t)delta;
580 offset=table[0].inOffset;
582 uprv_sortArray(table, (int32_t)itemCount, (int32_t)sizeof(ToCEntry),
592 table[i].outOffset=offset;
593 offset+=table[i].length;
597 /* write the output ToC table */
599 ds->writeUInt32(&outEntries[i].nameOffset, table[i].nameOffset);
600 ds->writeUInt32(&outEntries[i].dataOffset, table[i].outOffset);
606 uprv_memcpy(outBytes+table[i].outOffset, inBytes+table[i].inOffset, table[i].length);
609 udata_swap(ds, inBytes+table[i].inOffset, (int32_t)table[i].length,
610 outBytes+table[i].outOffset, pErrorCode);
617 (char *)outBytes+table[i].nameOffset,
618 table[i].inOffset, table[i].length, u_errorName(*pErrorCode));
623 table[i].inOffset, table[i].length, u_errorName(*pErrorCode));
627 uprv_memcpy(outBytes+table[i].outOffset, inBytes+table[i].inOffset, table[i].length);
635 uprv_free(table);