Lines Matching defs:headerLength
113 int32_t &infoLength, int32_t &headerLength,
140 headerLength=pHeader->dataHeader.headerSize;
143 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize);
147 if( headerLength<(int32_t)sizeof(DataHeader) ||
149 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) ||
150 (length>=0 && length<headerLength)
163 int32_t infoLength, headerLength;
166 pInfo=getDataInfo(data, length, infoLength, headerLength, pErrorCode);
413 headerLength=(int32_t)(4+sizeof(dataInfo));
414 if(headerLength&0xf) {
416 int32_t length=(headerLength+0xf)&~0xf;
417 memset(header+headerLength, 0, length-headerLength);
418 headerLength=length;
420 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
482 headerLength=sizeof(header);
483 if(length<headerLength) {
484 headerLength=length;
486 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode);
509 inBytes=(const uint8_t *)inData+headerLength;
513 length-=headerLength;
710 headerLength=4+pHeader->info.size;
712 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) {
716 memcpy(header+headerLength, comment, length+1);
717 headerLength+=length;
718 if(headerLength&0xf) {
720 length=(headerLength+0xf)&~0xf;
721 memset(header+headerLength, 0, length-headerLength);
722 headerLength=length;
724 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
760 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode);
766 length=(int32_t)fwrite(header, 1, headerLength, file);
767 if(length!=headerLength) {