Lines Matching refs:pData

40     UNewDataMemory *pData;  in udata_create()  local
54 pData=(UNewDataMemory *)uprv_malloc(sizeof(UNewDataMemory)); in udata_create()
55 if(pData==NULL) { in udata_create()
82 uprv_free(pData); in udata_create()
102 pData->file=T_FileStream_open(filename, "wb"); in udata_create()
103 if(pData->file==NULL) { in udata_create()
104 uprv_free(pData); in udata_create()
119 pData->headerSize=(uint16_t)((headerSize+15)&~0xf); in udata_create()
120 pData->magic1=0xda; in udata_create()
121 pData->magic2=0x27; in udata_create()
122 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create()
125 T_FileStream_write(pData->file, pInfo, pInfo->size); in udata_create()
129 T_FileStream_write(pData->file, comment, commentLength); in udata_create()
137 T_FileStream_write(pData->file, bytes, headerSize); in udata_create()
140 return pData; in udata_create()
144 udata_finish(UNewDataMemory *pData, UErrorCode *pErrorCode) { in udata_finish() argument
151 if(pData!=NULL) { in udata_finish()
152 if(pData->file!=NULL) { in udata_finish()
154 fileLength=T_FileStream_size(pData->file); in udata_finish()
155 if(T_FileStream_error(pData->file)) { in udata_finish()
158 fileLength-=pData->headerSize; in udata_finish()
160 T_FileStream_close(pData->file); in udata_finish()
162 uprv_free(pData); in udata_finish()
196 udata_write8(UNewDataMemory *pData, uint8_t byte) { in udata_write8() argument
197 if(pData!=NULL && pData->file!=NULL) { in udata_write8()
198 T_FileStream_write(pData->file, &byte, 1); in udata_write8()
203 udata_write16(UNewDataMemory *pData, uint16_t word) { in udata_write16() argument
204 if(pData!=NULL && pData->file!=NULL) { in udata_write16()
205 T_FileStream_write(pData->file, &word, 2); in udata_write16()
210 udata_write32(UNewDataMemory *pData, uint32_t wyde) { in udata_write32() argument
211 if(pData!=NULL && pData->file!=NULL) { in udata_write32()
212 T_FileStream_write(pData->file, &wyde, 4); in udata_write32()
217 udata_writeBlock(UNewDataMemory *pData, const void *s, int32_t length) { in udata_writeBlock() argument
218 if(pData!=NULL && pData->file!=NULL) { in udata_writeBlock()
220 T_FileStream_write(pData->file, s, length); in udata_writeBlock()
226 udata_writePadding(UNewDataMemory *pData, int32_t length) { in udata_writePadding() argument
233 if(pData!=NULL && pData->file!=NULL) { in udata_writePadding()
235 T_FileStream_write(pData->file, padding, 16); in udata_writePadding()
239 T_FileStream_write(pData->file, padding, length); in udata_writePadding()
245 udata_writeString(UNewDataMemory *pData, const char *s, int32_t length) { in udata_writeString() argument
246 if(pData!=NULL && pData->file!=NULL) { in udata_writeString()
251 T_FileStream_write(pData->file, s, length); in udata_writeString()
257 udata_writeUString(UNewDataMemory *pData, const UChar *s, int32_t length) { in udata_writeUString() argument
258 if(pData!=NULL && pData->file!=NULL) { in udata_writeUString()
263 T_FileStream_write(pData->file, s, length*sizeof(UChar)); in udata_writeUString()