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()
413 headerLength=(int32_t)(4+sizeof(dataInfo)); in Package()
414 if(headerLength&0xf) { in Package()
416 int32_t length=(headerLength+0xf)&~0xf; in Package()
417 memset(header+headerLength, 0, length-headerLength); in Package()
418 headerLength=length; in Package()
420 pHeader->dataHeader.headerSize=(uint16_t)headerLength; in Package()
482 headerLength=sizeof(header); in readPackage()
483 if(length<headerLength) { in readPackage()
484 headerLength=length; in readPackage()
486 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode); in readPackage()
509 inBytes=(const uint8_t *)inData+headerLength; in readPackage()
513 length-=headerLength; in readPackage()
710 headerLength=4+pHeader->info.size; in writePackage()
712 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) { in writePackage()
716 memcpy(header+headerLength, comment, length+1); in writePackage()
717 headerLength+=length; in writePackage()
718 if(headerLength&0xf) { in writePackage()
720 length=(headerLength+0xf)&~0xf; in writePackage()
721 memset(header+headerLength, 0, length-headerLength); in writePackage()
722 headerLength=length; in writePackage()
724 pHeader->dataHeader.headerSize=(uint16_t)headerLength; in writePackage()
760 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode); in writePackage()
766 length=(int32_t)fwrite(header, 1, headerLength, file); in writePackage()
767 if(length!=headerLength) { in writePackage()