Lines Matching refs:headerLength
111 int32_t &infoLength, int32_t &headerLength, in getDataInfo() argument
138 headerLength=pHeader->dataHeader.headerSize; in getDataInfo()
141 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize); in getDataInfo()
145 if( headerLength<(int32_t)sizeof(DataHeader) || in getDataInfo()
147 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) || in getDataInfo()
148 (length>=0 && length<headerLength) in getDataInfo()
161 int32_t infoLength, headerLength; in getTypeEnumForInputData() local
164 pInfo=getDataInfo(data, length, infoLength, headerLength, pErrorCode); in getTypeEnumForInputData()
411 headerLength=(int32_t)(4+sizeof(dataInfo)); in Package()
412 if(headerLength&0xf) { in Package()
414 int32_t length=(headerLength+0xf)&~0xf; in Package()
415 memset(header+headerLength, 0, length-headerLength); in Package()
416 headerLength=length; in Package()
418 pHeader->dataHeader.headerSize=(uint16_t)headerLength; in Package()
480 headerLength=sizeof(header); in readPackage()
481 if(length<headerLength) { in readPackage()
482 headerLength=length; in readPackage()
484 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode); in readPackage()
507 inBytes=(const uint8_t *)inData+headerLength; in readPackage()
511 length-=headerLength; in readPackage()
708 headerLength=4+pHeader->info.size; in writePackage()
710 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) { in writePackage()
714 memcpy(header+headerLength, comment, length+1); in writePackage()
715 headerLength+=length; in writePackage()
716 if(headerLength&0xf) { in writePackage()
718 length=(headerLength+0xf)&~0xf; in writePackage()
719 memset(header+headerLength, 0, length-headerLength); in writePackage()
720 headerLength=length; in writePackage()
722 pHeader->dataHeader.headerSize=(uint16_t)headerLength; in writePackage()
758 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode); in writePackage()
764 length=(int32_t)fwrite(header, 1, headerLength, file); in writePackage()
765 if(length!=headerLength) { in writePackage()