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);
398 headerLength=(int32_t)(4+sizeof(dataInfo));
399 if(headerLength&0xf) {
401 int32_t length=(headerLength+0xf)&~0xf;
402 memset(header+headerLength, 0, length-headerLength);
403 headerLength=length;
405 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
456 headerLength=sizeof(header);
457 if(length<headerLength) {
458 headerLength=length;
460 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode);
483 inBytes=(const uint8_t *)inData+headerLength;
487 length-=headerLength;
647 headerLength=4+pHeader->info.size;
649 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) {
653 memcpy(header+headerLength, comment, length+1);
654 headerLength+=length;
655 if(headerLength&0xf) {
657 length=(headerLength+0xf)&~0xf;
658 memset(header+headerLength, 0, length-headerLength);
659 headerLength=length;
661 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
697 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode);
703 length=(int32_t)fwrite(header, 1, headerLength, file);
704 if(length!=headerLength) {