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);
410 headerLength=(int32_t)(4+sizeof(dataInfo));
411 if(headerLength&0xf) {
413 int32_t length=(headerLength+0xf)&~0xf;
414 memset(header+headerLength, 0, length-headerLength);
415 headerLength=length;
417 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
470 headerLength=sizeof(header);
471 if(length<headerLength) {
472 headerLength=length;
474 headerLength=udata_swapDataHeader(ds, inData, headerLength, header, &errorCode);
497 inBytes=(const uint8_t *)inData+headerLength;
501 length-=headerLength;
662 headerLength=4+pHeader->info.size;
664 if((int32_t)(headerLength+length)>=(int32_t)sizeof(header)) {
668 memcpy(header+headerLength, comment, length+1);
669 headerLength+=length;
670 if(headerLength&0xf) {
672 length=(headerLength+0xf)&~0xf;
673 memset(header+headerLength, 0, length-headerLength);
674 headerLength=length;
676 pHeader->dataHeader.headerSize=(uint16_t)headerLength;
712 udata_swapDataHeader(dsLocalToOut, header, headerLength, header, &errorCode);
718 length=(int32_t)fwrite(header, 1, headerLength, file);
719 if(length!=headerLength) {