• Home
  • Raw
  • Download

Lines Matching refs:ds

75                   const UDataSwapper *ds,
113 UDataSwapper *ds; in main() local
208 ds=udata_openSwapperForInputData(data, length, outIsBigEndian, outCharset, &errorCode); in main()
216 ds->printError=printError; in main()
217 ds->printErrorContext=stderr; in main()
235 length=udata_swapPackage(argv[1], argv[2], ds, data, length, data, &errorCode); in main()
236 udata_closeSwapper(ds); in main()
245 length=udata_swap(ds, data, length, data, &errorCode); in main()
246 udata_closeSwapper(ds); in main()
290 extractPackageName(const UDataSwapper *ds, const char *filename, in extractPackageName() argument
304 …udata_printError(ds, "udata_swapPackage(): \"%s\" is not recognized as a package filename (must en… in extractPackageName()
311 udata_printError(ds, "udata_swapPackage(): the package name \"%s\" is too long (>=%ld)\n", in extractPackageName()
337 const UDataSwapper *ds, in udata_swapPackage() argument
358 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in udata_swapPackage()
372 …udata_printError(ds, "udata_swapPackage(): data format %02x.%02x.%02x.%02x (format version %02x) i… in udata_swapPackage()
386 ds, inFilename, in udata_swapPackage()
390 ds, outFilename, in udata_swapPackage()
403 …udata_printError(ds, "udata_swapPackage(): the package names \"%s\" and \"%s\" must have the same … in udata_swapPackage()
414 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
421 offset=ds->readUInt32(inEntries[itemCount-1].dataOffset); in udata_swapPackage()
422 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage()
437 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage()
445 offset=20+ds->readUInt32(inEntries[itemCount-1].dataOffset); in udata_swapPackage()
449 … udata_printError(ds, "udata_swapPackage(): too few bytes (%d after header) for a .dat package\n", in udata_swapPackage()
458 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage()
467 itemLength=(int32_t)(ds->readUInt32(inEntries[0].dataOffset)-offset); in udata_swapPackage()
468 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage()
470 udata_printError(ds, "udata_swapPackage() failed to swap the data item name strings\n"); in udata_swapPackage()
476 if(ds->outCharset!=U_CHARSET_FAMILY) { in udata_swapPackage()
478 ds2=udata_openSwapper(TRUE, U_CHARSET_FAMILY, TRUE, ds->outCharset, pErrorCode); in udata_swapPackage()
483 … udata_printError(ds, "udata_swapPackage() failed to swap the input/output package names\n"); in udata_swapPackage()
492 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage()
497 …udata_printError(ds, "udata_swapPackage() failed: ToC item %ld does not have the input package nam… in udata_swapPackage()
536 udata_printError(ds, "udata_swapPackage(): out of memory allocating %d bytes\n", in udata_swapPackage()
547 table[i].nameOffset=ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage()
548 table[i].inOffset=ds->readUInt32(inEntries[i].dataOffset); in udata_swapPackage()
555 if(ds->inCharset==ds->outCharset) { in udata_swapPackage()
600 ds->writeUInt32(&outEntries[i].nameOffset, table[i].nameOffset); in udata_swapPackage()
601 ds->writeUInt32(&outEntries[i].dataOffset, table[i].outOffset); in udata_swapPackage()
610 udata_swap(ds, inBytes+table[i].inOffset, (int32_t)table[i].length, in udata_swapPackage()
614 if(ds->outCharset==U_CHARSET_FAMILY) { in udata_swapPackage()
615 udata_printError(ds, "warning: udata_swapPackage() failed to swap item \"%s\"\n" in udata_swapPackage()
621 udata_printError(ds, "warning: udata_swapPackage() failed to swap an item\n" in udata_swapPackage()