Lines Matching refs:ds
33 uprv_swapArray16(const UDataSwapper *ds, in uprv_swapArray16() argument
44 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_swapArray16()
63 uprv_copyArray16(const UDataSwapper *ds, in uprv_copyArray16() argument
69 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_copyArray16()
81 uprv_swapArray32(const UDataSwapper *ds, in uprv_swapArray32() argument
92 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_swapArray32()
111 uprv_copyArray32(const UDataSwapper *ds, in uprv_copyArray32() argument
117 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_copyArray32()
129 uprv_swapArray64(const UDataSwapper *ds, in uprv_swapArray64() argument
139 if(ds==NULL || inData==NULL || length<0 || (length&7)!=0 || outData==NULL) { in uprv_swapArray64()
160 uprv_copyArray64(const UDataSwapper *ds, in uprv_copyArray64() argument
166 if(ds==NULL || inData==NULL || length<0 || (length&7)!=0 || outData==NULL) { in uprv_copyArray64()
218 udata_readInt16(const UDataSwapper *ds, int16_t x) { in udata_readInt16() argument
219 return (int16_t)ds->readUInt16((uint16_t)x); in udata_readInt16()
223 udata_readInt32(const UDataSwapper *ds, int32_t x) { in udata_readInt32() argument
224 return (int32_t)ds->readUInt32((uint32_t)x); in udata_readInt32()
233 udata_swapInvStringBlock(const UDataSwapper *ds, in udata_swapInvStringBlock() argument
242 if(ds==NULL || inData==NULL || length<0 || (length>0 && outData==NULL)) { in udata_swapInvStringBlock()
255 ds->swapInvChars(ds, inData, stringsLength, outData, pErrorCode); in udata_swapInvStringBlock()
271 udata_printError(const UDataSwapper *ds, in udata_printError() argument
276 if(ds->printError!=NULL) { in udata_printError()
278 ds->printError(ds->printErrorContext, fmt, args); in udata_printError()
286 udata_swapDataHeader(const UDataSwapper *ds, in udata_swapDataHeader() argument
296 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in udata_swapDataHeader()
308 udata_printError(ds, "udata_swapDataHeader(): initial bytes do not look like ICU data\n"); in udata_swapDataHeader()
313 headerSize=ds->readUInt16(pHeader->dataHeader.headerSize); in udata_swapDataHeader()
314 infoSize=ds->readUInt16(pHeader->info.size); in udata_swapDataHeader()
321 …udata_printError(ds, "udata_swapDataHeader(): header size mismatch - headerSize %d infoSize %d len… in udata_swapDataHeader()
338 outHeader->info.isBigEndian = ds->outIsBigEndian; in udata_swapDataHeader()
339 outHeader->info.charsetFamily = ds->outCharset; in udata_swapDataHeader()
342 …ds->swapArray16(ds, &pHeader->dataHeader.headerSize, 2, &outHeader->dataHeader.headerSize, pErrorC… in udata_swapDataHeader()
345 ds->swapArray16(ds, &pHeader->info.size, 4, &outHeader->info.size, pErrorCode); in udata_swapDataHeader()
354 ds->swapInvChars(ds, s, length, (char *)outData+infoSize, pErrorCode); in udata_swapDataHeader()
471 udata_closeSwapper(UDataSwapper *ds) { in udata_closeSwapper() argument
472 uprv_free(ds); in udata_closeSwapper()