Lines Matching refs:headerLength
113 int32_t &infoLength, int32_t &headerLength, in getDataInfo() argument
140 headerLength=pHeader->dataHeader.headerSize; in getDataInfo()
143 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize); in getDataInfo()
147 if( headerLength<(int32_t)sizeof(DataHeader) || in getDataInfo()
149 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) || in getDataInfo()
150 (length>=0 && length<headerLength) in getDataInfo()
163 int32_t infoLength, headerLength; in getTypeEnumForInputData() local
166 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()
471 headerLength=sizeof(header); in readPackage()
472 if(length<headerLength) { in readPackage()
473 headerLength=length; in readPackage()
475 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode); in readPackage()
498 inBytes=(const uint8_t *)inData+headerLength; in readPackage()
502 length-=headerLength; in readPackage()
663 headerLength=4+pHeader->info.size; in writePackage()
665 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) { in writePackage()
669 memcpy(header+headerLength, comment, length+1); in writePackage()
670 headerLength+=length; in writePackage()
671 if(headerLength&0xf) { in writePackage()
673 length=(headerLength+0xf)&~0xf; in writePackage()
674 memset(header+headerLength, 0, length-headerLength); in writePackage()
675 headerLength=length; in writePackage()
677 pHeader->dataHeader.headerSize=(uint16_t)headerLength; in writePackage()
713 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode); in writePackage()
719 length=(int32_t)fwrite(header, 1, headerLength, file); in writePackage()
720 if(length!=headerLength) { in writePackage()