Lines Matching refs:headerLength
109 int32_t &infoLength, int32_t &headerLength,
136 headerLength=pHeader->dataHeader.headerSize;
139 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize);
143 if( headerLength<(int32_t)sizeof(DataHeader) ||
145 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) ||
146 (length>=0 && length<headerLength)
159 int32_t infoLength, headerLength;
162 pInfo=getDataInfo(data, length, infoLength, headerLength, pErrorCode);
403 headerLength=(int32_t)(4+sizeof(dataInfo));
404 if(headerLength&0xf) {
406 int32_t length=(headerLength+0xf)&~0xf;
407 memset(header+headerLength, 0, length-headerLength);
408 headerLength=length;
410 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
461 headerLength=sizeof(header);
462 if(length<headerLength) {
463 headerLength=length;
465 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode);
488 inBytes=(const uint8_t *)inData+headerLength;
492 length-=headerLength;
652 headerLength=4+pHeader->info.size;
654 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) {
658 memcpy(header+headerLength, comment, length+1);
659 headerLength+=length;
660 if(headerLength&0xf) {
662 length=(headerLength+0xf)&~0xf;
663 memset(header+headerLength, 0, length-headerLength);
664 headerLength=length;
666 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
702 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode);
708 length=(int32_t)fwrite(header, 1, headerLength, file);
709 if(length!=headerLength) {