• Home
  • Raw
  • Download

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()
92 uprv_free(pData); in udata_create()
112 pData->file=T_FileStream_open(filename, "wb"); in udata_create()
113 if(pData->file==NULL) { in udata_create()
114 uprv_free(pData); in udata_create()
129 pData->headerSize=(uint16_t)((headerSize+15)&~0xf); in udata_create()
130 pData->magic1=0xda; in udata_create()
131 pData->magic2=0x27; in udata_create()
132 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create()
135 T_FileStream_write(pData->file, pInfo, pInfo->size); in udata_create()
139 T_FileStream_write(pData->file, comment, commentLength); in udata_create()
147 T_FileStream_write(pData->file, bytes, headerSize); in udata_create()
150 return pData; in udata_create()
154 udata_finish(UNewDataMemory *pData, UErrorCode *pErrorCode) { in udata_finish() argument
161 if(pData!=NULL) { in udata_finish()
162 if(pData->file!=NULL) { in udata_finish()
164 fileLength=T_FileStream_size(pData->file); in udata_finish()
165 if(T_FileStream_error(pData->file)) { in udata_finish()
168 fileLength-=pData->headerSize; in udata_finish()
170 T_FileStream_close(pData->file); in udata_finish()
172 uprv_free(pData); in udata_finish()
206 udata_write8(UNewDataMemory *pData, uint8_t byte) { in udata_write8() argument
207 if(pData!=NULL && pData->file!=NULL) { in udata_write8()
208 T_FileStream_write(pData->file, &byte, 1); in udata_write8()
213 udata_write16(UNewDataMemory *pData, uint16_t word) { in udata_write16() argument
214 if(pData!=NULL && pData->file!=NULL) { in udata_write16()
215 T_FileStream_write(pData->file, &word, 2); in udata_write16()
220 udata_write32(UNewDataMemory *pData, uint32_t wyde) { in udata_write32() argument
221 if(pData!=NULL && pData->file!=NULL) { in udata_write32()
222 T_FileStream_write(pData->file, &wyde, 4); in udata_write32()
227 udata_writeBlock(UNewDataMemory *pData, const void *s, int32_t length) { in udata_writeBlock() argument
228 if(pData!=NULL && pData->file!=NULL) { in udata_writeBlock()
230 T_FileStream_write(pData->file, s, length); in udata_writeBlock()
236 udata_writePadding(UNewDataMemory *pData, int32_t length) { in udata_writePadding() argument
243 if(pData!=NULL && pData->file!=NULL) { in udata_writePadding()
245 T_FileStream_write(pData->file, padding, 16); in udata_writePadding()
249 T_FileStream_write(pData->file, padding, length); in udata_writePadding()
255 udata_writeString(UNewDataMemory *pData, const char *s, int32_t length) { in udata_writeString() argument
256 if(pData!=NULL && pData->file!=NULL) { in udata_writeString()
261 T_FileStream_write(pData->file, s, length); in udata_writeString()
267 udata_writeUString(UNewDataMemory *pData, const UChar *s, int32_t length) { in udata_writeUString() argument
268 if(pData!=NULL && pData->file!=NULL) { in udata_writeUString()
273 T_FileStream_write(pData->file, s, length*sizeof(UChar)); in udata_writeUString()