Lines Matching refs:ds
31 uprv_swapArray16(const UDataSwapper *ds, in uprv_swapArray16() argument
42 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_swapArray16()
61 uprv_copyArray16(const UDataSwapper *ds, in uprv_copyArray16() argument
67 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_copyArray16()
79 uprv_swapArray32(const UDataSwapper *ds, in uprv_swapArray32() argument
90 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_swapArray32()
109 uprv_copyArray32(const UDataSwapper *ds, in uprv_copyArray32() argument
115 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_copyArray32()
127 uprv_swapArray64(const UDataSwapper *ds, in uprv_swapArray64() argument
137 if(ds==NULL || inData==NULL || length<0 || (length&7)!=0 || outData==NULL) { in uprv_swapArray64()
158 uprv_copyArray64(const UDataSwapper *ds, in uprv_copyArray64() argument
164 if(ds==NULL || inData==NULL || length<0 || (length&7)!=0 || outData==NULL) { in uprv_copyArray64()
216 udata_readInt16(const UDataSwapper *ds, int16_t x) { in udata_readInt16() argument
217 return (int16_t)ds->readUInt16((uint16_t)x); in udata_readInt16()
221 udata_readInt32(const UDataSwapper *ds, int32_t x) { in udata_readInt32() argument
222 return (int32_t)ds->readUInt32((uint32_t)x); in udata_readInt32()
231 udata_swapInvStringBlock(const UDataSwapper *ds, in udata_swapInvStringBlock() argument
240 if(ds==NULL || inData==NULL || length<0 || (length>0 && outData==NULL)) { in udata_swapInvStringBlock()
253 ds->swapInvChars(ds, inData, stringsLength, outData, pErrorCode); in udata_swapInvStringBlock()
269 udata_printError(const UDataSwapper *ds, in udata_printError() argument
274 if(ds->printError!=NULL) { in udata_printError()
276 ds->printError(ds->printErrorContext, fmt, args); in udata_printError()
284 udata_swapDataHeader(const UDataSwapper *ds, in udata_swapDataHeader() argument
294 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in udata_swapDataHeader()
306 udata_printError(ds, "udata_swapDataHeader(): initial bytes do not look like ICU data\n"); in udata_swapDataHeader()
311 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize); in udata_swapDataHeader()
312 infoSize=ds->readUInt16(pHeader->info.size); in udata_swapDataHeader()
319 …udata_printError(ds, "udata_swapDataHeader(): header size mismatch - headerSize %d infoSize %d len… in udata_swapDataHeader()
336 outHeader->info.isBigEndian = ds->outIsBigEndian; in udata_swapDataHeader()
337 outHeader->info.charsetFamily = ds->outCharset; in udata_swapDataHeader()
340 …ds->swapArray16(ds, &pHeader->dataHeader.headerSize, 2, &outHeader->dataHeader.headerSize, pErrorC… in udata_swapDataHeader()
343 ds->swapArray16(ds, &pHeader->info.size, 4, &outHeader->info.size, pErrorCode); in udata_swapDataHeader()
352 ds->swapInvChars(ds, s, length, (char *)outData+infoSize, pErrorCode); in udata_swapDataHeader()
469 udata_closeSwapper(UDataSwapper *ds) { in udata_closeSwapper() argument
470 uprv_free(ds); in udata_closeSwapper()