Lines Matching refs:SafeAlloc
206 bool SafeAlloc(T* &ptr, size_t cnt) in SafeAlloc() function
314 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead)) in ReadAfterAlloc()
323 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead/4)) in ReadAfterAlloc32()
344 if(!SafeAlloc(lpBuffer, dwNumberOfBytesToRead/2 )) in ReadAfterAlloc16()
1474 …case ePODFileMeshNumUVW: if(!src.Read32(s.nNumUVW)) return false; if(!SafeAlloc(s.psUVW, s.nNumU… in ReadMesh()
1660 …case ePODFileNumCamera: if(!src.Read32(s.nNumCamera)) return false; if(!SafeAlloc(s.pCamera, s… in ReadScene()
1661 …case ePODFileNumLight: if(!src.Read32(s.nNumLight)) return false; if(!SafeAlloc(s.pLight, s.nN… in ReadScene()
1662 …case ePODFileNumMesh: if(!src.Read32(s.nNumMesh)) return false; if(!SafeAlloc(s.pMesh, s.nNum… in ReadScene()
1663 …case ePODFileNumNode: if(!src.Read32(s.nNumNode)) return false; if(!SafeAlloc(s.pNode, s.nNum… in ReadScene()
1665 …case ePODFileNumTexture: if(!src.Read32(s.nNumTexture)) return false; if(!SafeAlloc(s.pTexture,… in ReadScene()
1666 …case ePODFileNumMaterial: if(!src.Read32(s.nNumMaterial)) return false; if(!SafeAlloc(s.pMateri… in ReadScene()
1731 if(!SafeAlloc(pszVersion, nLen)) return false;
1964 if(scene.nNumNode && SafeAlloc(pNode, scene.nNumNode))
1974 if(scene.nNumMesh && SafeAlloc(pMesh, scene.nNumMesh))
1983 if(scene.nNumCamera && SafeAlloc(pCamera, scene.nNumCamera))
1992 if(scene.nNumLight && SafeAlloc(pLight, scene.nNumLight))
2001 if(scene.nNumTexture && SafeAlloc(pTexture, scene.nNumTexture))
2010 if(scene.nNumMaterial && SafeAlloc(pMaterial, scene.nNumMaterial))
2018 if(scene.pUserData && SafeAlloc(pUserData, scene.nUserDataSize))
3442 SafeAlloc(data.pData, nAlignedStride * nNumVertex);
3524 SafeAlloc(mesh.pInterleaved, mesh.nNumVertex * nStride);
3578 SafeAlloc(pNew, mesh.sVertex.nStride * mesh.nNumVertex);
3623 SafeAlloc(mesh.sFaces.pData, nTriStride * mesh.nNumFaces);
3806 if(SafeAlloc(out.pData, ui32Size))
3827 if(in.pszName && SafeAlloc(out.pszName, strlen(in.pszName) + 1))
3835 if(in.pnAnimPositionIdx && SafeAlloc(out.pnAnimPositionIdx, nNumFrames))
3838 if(in.pfAnimPosition && SafeAlloc(out.pfAnimPosition, i32Size))
3844 if(in.pnAnimRotationIdx && SafeAlloc(out.pnAnimRotationIdx, nNumFrames))
3847 if(in.pfAnimRotation && SafeAlloc(out.pfAnimRotation, i32Size))
3853 if(in.pnAnimScaleIdx && SafeAlloc(out.pnAnimScaleIdx, nNumFrames))
3856 if(in.pfAnimScale && SafeAlloc(out.pfAnimScale, i32Size))
3862 if(in.pnAnimMatrixIdx && SafeAlloc(out.pnAnimMatrixIdx, nNumFrames))
3865 if(in.pfAnimMatrix && SafeAlloc(out.pfAnimMatrix, i32Size))
3868 if(in.pUserData && SafeAlloc(out.pUserData, in.nUserDataSize))
3900 if(in.nNumUVW && SafeAlloc(out.psUVW, in.nNumUVW))
3911 if(bInterleaved && SafeAlloc(out.pInterleaved, out.nNumVertex * in.sVertex.nStride))
3914 if(in.pnStripLength && SafeAlloc(out.pnStripLength, out.nNumFaces))
3965 if(in.pszName && SafeAlloc(out.pszName, strlen(in.pszName) + 1))
3985 if(in.pszName && SafeAlloc(out.pszName, strlen(in.pszName) + 1))
3988 if(in.pszEffectFile && SafeAlloc(out.pszEffectFile, strlen(in.pszEffectFile) + 1))
3991 if(in.pszEffectName && SafeAlloc(out.pszEffectName, strlen(in.pszEffectName) + 1))
3994 if(in.pUserData && SafeAlloc(out.pUserData, in.nUserDataSize))
4014 if(in.pfAnimFOV && SafeAlloc(out.pfAnimFOV, nNumFrames))
4108 SafeAlloc(out.pNode, in.nNumNode);
4109 SafeAlloc(out.pMesh, in.nNumMeshNode);
4200 SafeAlloc(pPalette, inMesh.sBoneBatches.nBatchBoneMax);
4201 SafeAlloc(pPaletteInvTrans, inMesh.sBoneBatches.nBatchBoneMax);
4202 SafeAlloc(pbTransformed, inMesh.nNumVertex);
4351 if(SafeAlloc(out.pNode[i].pfAnimMatrix, 16))
4356 if(in.nNumCamera && SafeAlloc(out.pCamera, in.nNumCamera))
4364 if(in.nNumLight && SafeAlloc(out.pLight, in.nNumLight))
4373 if(in.nNumTexture && SafeAlloc(out.pTexture, in.nNumTexture))
4382 if(in.nNumMaterial && SafeAlloc(out.pMaterial, in.nNumMaterial))