Lines Matching defs:headerLength
111 int32_t &infoLength, int32_t &headerLength,
138 headerLength=pHeader->dataHeader.headerSize;
141 headerLength=readSwapUInt16(pHeader->dataHeader.headerSize);
145 if( headerLength<(int32_t)sizeof(DataHeader) ||
147 headerLength<(int32_t)(sizeof(pHeader->dataHeader)+infoLength) ||
148 (length>=0 && length<headerLength)
161 int32_t infoLength, headerLength;
164 pInfo=getDataInfo(data, length, infoLength, headerLength, pErrorCode);
408 headerLength=(int32_t)(4+sizeof(dataInfo));
409 if(headerLength&0xf) {
411 int32_t length=(headerLength+0xf)&~0xf;
412 memset(header+headerLength, 0, length-headerLength);
413 headerLength=length;
415 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
477 headerLength=sizeof(header);
478 if(length<headerLength) {
479 headerLength=length;
481 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode);
504 inBytes=(const uint8_t *)inData+headerLength;
508 length-=headerLength;
705 headerLength=4+pHeader->info.size;
707 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) {
711 memcpy(header+headerLength, comment, length+1);
712 headerLength+=length;
713 if(headerLength&0xf) {
715 length=(headerLength+0xf)&~0xf;
716 memset(header+headerLength, 0, length-headerLength);
717 headerLength=length;
719 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
755 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode);
761 length=(int32_t)fwrite(header, 1, headerLength, file);
762 if(length!=headerLength) {