Home | History | Annotate | Download | only in Tools

Lines Matching defs:nLen

309 	bool ReadMarker(unsigned int &nName, unsigned int &nLen);
360 bool CSource::ReadMarker(unsigned int &nName, unsigned int &nLen)
364 if(!Read32(nLen))
635 @Input nLen
644 const unsigned int nLen = 0)
653 bRet &= WriteFileSafe32(pFile, &nLen, 1);
663 @Input nLen
665 @Description Write nLen bytes of data from pData, bracketed by an nName
672 const unsigned int nLen)
676 _ASSERT(nLen);
677 if(!WriteMarker(pFile, nName, false, nLen)) return false;
678 if(!WriteFileSafe(pFile, pData, nLen)) return false;
1156 unsigned int nName, nLen, nBuff;
1158 while(src.ReadMarker(nName, nLen))
1173 case 1: if(!src.ReadAfterAlloc(s.pData, nLen)) return false; break;
1177 if(!src.ReadAfterAlloc16(p16Pointer, nLen)) return false;
1184 if(!src.ReadAfterAlloc32(p32Pointer, nLen)) return false;
1206 if(!src.Skip(nLen)) return false;
1223 unsigned int nName, nLen;
1226 while(src.ReadMarker(nName, nLen))
1236 case ePODFileCamAnimFOV: if(!src.ReadAfterAlloc32(s.pfAnimFOV, nLen)) return false; break;
1239 if(!src.Skip(nLen)) return false;
1256 unsigned int nName, nLen;
1258 while(src.ReadMarker(nName, nLen))
1273 if(!src.Skip(nLen)) return false;
1290 unsigned int nName, nLen;
1319 while(src.ReadMarker(nName, nLen))
1326 case ePODFileMatName: if(!src.ReadAfterAlloc(s.pszName, nLen)) return false; break;
1342 case ePODFileMatEffectFile: if(!src.ReadAfterAlloc(s.pszEffectFile, nLen)) return false; break;
1343 case ePODFileMatEffectName: if(!src.ReadAfterAlloc(s.pszEffectName, nLen)) return false; break;
1354 if(!src.ReadAfterAlloc(s.pUserData, nLen))
1358 s.nUserDataSize = nLen;
1363 if(!src.Skip(nLen)) return false;
1457 unsigned int nName, nLen;
1462 while(src.ReadMarker(nName, nLen))
1475 case ePODFileMeshStripLength: if(!src.ReadAfterAlloc32(s.pnStripLength, nLen)) return false; break;
1477 case ePODFileMeshInterleaved: if(!src.ReadAfterAlloc(s.pInterleaved, nLen)) return false; break;
1478 case ePODFileMeshBoneBatches: if(!src.ReadAfterAlloc32(s.sBoneBatches.pnBatches, nLen)) return false; break;
1479 case ePODFileMeshBoneBatchBoneCnts: if(!src.ReadAfterAlloc32(s.sBoneBatches.pnBatchBoneCnt, nLen)) return false; break;
1480 case ePODFileMeshBoneBatchOffsets: if(!src.ReadAfterAlloc32(s.sBoneBatches.pnBatchOffset, nLen)) return false; break;
1496 if(!src.Skip(nLen)) return false;
1513 unsigned int nName, nLen;
1523 while(src.ReadMarker(nName, nLen))
1557 case ePODFileNodeName: if(!src.ReadAfterAlloc(s.pszName, nLen)) return false; break;
1562 case ePODFileNodeAnimPosIdx: if(!src.ReadAfterAlloc32(s.pnAnimPositionIdx, nLen)) return false; break;
1563 case ePODFileNodeAnimPos: if(!src.ReadAfterAlloc32(s.pfAnimPosition, nLen)) return false; break;
1565 case ePODFileNodeAnimRotIdx: if(!src.ReadAfterAlloc32(s.pnAnimRotationIdx, nLen)) return false; break;
1566 case ePODFileNodeAnimRot: if(!src.ReadAfterAlloc32(s.pfAnimRotation, nLen)) return false; break;
1568 case ePODFileNodeAnimScaleIdx: if(!src.ReadAfterAlloc32(s.pnAnimScaleIdx, nLen)) return false; break;
1569 case ePODFileNodeAnimScale: if(!src.ReadAfterAlloc32(s.pfAnimScale, nLen)) return false; break;
1571 case ePODFileNodeAnimMatrixIdx: if(!src.ReadAfterAlloc32(s.pnAnimMatrixIdx, nLen)) return false; break;
1572 case ePODFileNodeAnimMatrix:if(!src.ReadAfterAlloc32(s.pfAnimMatrix, nLen)) return false; break;
1575 if(!src.ReadAfterAlloc(s.pUserData, nLen))
1579 s.nUserDataSize = nLen;
1589 if(!src.Skip(nLen)) return false;
1607 unsigned int nName, nLen;
1609 while(src.ReadMarker(nName, nLen))
1615 case ePODFileTexName: if(!src.ReadAfterAlloc(s.pszName, nLen)) return false; break;
1618 if(!src.Skip(nLen)) return false;
1635 unsigned int nName, nLen;
1644 while(src.ReadMarker(nName, nLen))
1679 if(!src.ReadAfterAlloc(s.pUserData, nLen))
1683 s.nUserDataSize = nLen;
1688 if(!src.Skip(nLen)) return false;
1717 unsigned int nName, nLen;
1723 while(src.ReadMarker(nName, nLen))
1730 if(nLen != strlen(PVRTMODELPOD_VERSION)+1) return false;
1731 if(!SafeAlloc(pszVersion, nLen)) return false;
1732 if(!src.Read(pszVersion, nLen)) return false;
1751 if(!src.Read(pszExpOpt, PVRT_MIN(nLen, (unsigned int) count)))
1756 if(count < nLen)
1757 nLen -= (unsigned int) count ; // Adjust nLen as the read has moved our position
1759 nLen = 0;
1766 if(!src.Read(pszHistory, PVRT_MIN(nLen, (unsigned int) historyCount)))
1771 if(count < nLen)
1772 nLen -= (unsigned int) historyCount; // Adjust nLen as the read has moved our position
1774 nLen = 0;
1791 if(!src.Skip(nLen))