Lines Matching refs:m_nDataSize
80 m_nDataSize = nDataSize;
102 wxCHECK(nStartPos + nSize <= m_nDataSize, NULL);
103 wxCHECK(nSize <= m_nDataSize, NULL);
105 if (nStartPos == 0 && nSize == m_nDataSize) {
108 } else if (m_nDataSize <= m_nBaseSize) { // sanity
113 uint64 nBlocks = m_nDataSize / m_nBaseSize + ((m_nDataSize % m_nBaseSize != 0 )? 1:0);
115 uint64 nRight = m_nDataSize - nLeft;
125 wxASSERT( m_pLeftTree->m_nDataSize == nLeft );
139 wxASSERT( m_pRightTree->m_nDataSize == nRight );
261 if (pToInsert->m_nBaseSize != EMBLOCKSIZE || pToInsert->m_nDataSize != nSize) {
274 wxCHECK(nStartPos + nSize <= m_nDataSize, false);
275 wxCHECK(nSize <= m_nDataSize, false);
277 if (nStartPos == 0 && nSize == m_nDataSize) {
281 } else if (m_nDataSize <= m_nBaseSize) { // sanity
289 uint64 nBlocks = m_nDataSize / m_nBaseSize + ((m_nDataSize % m_nBaseSize != 0 )? 1:0);
291 uint64 nRight = m_nDataSize - nLeft;
340 if (m_nDataSize <= m_nBaseSize && m_bHashValid ) {
366 if (m_nDataSize <= m_nBaseSize) { // sanity
372 uint64 nBlocks = m_nDataSize / m_nBaseSize + ((m_nDataSize % m_nBaseSize != 0 )? 1:0);
374 uint64 nRight = m_nDataSize - nLeft;
378 wxASSERT( m_pLeftTree->m_nDataSize == nLeft );
383 wxASSERT( m_pRightTree->m_nDataSize == nRight );
417 } else if (m_nDataSize <= m_nBaseSize) { // sanity
425 uint64 nBlocks = m_nDataSize / m_nBaseSize + ((m_nDataSize % m_nBaseSize != 0 )? 1:0);
427 uint64 nRight = m_nDataSize - nLeft;
432 wxASSERT( m_pLeftTree->m_nDataSize == nLeft );
439 wxASSERT( m_pRightTree->m_nDataSize == nRight );
478 if (m_pHashTree.m_nDataSize <= EMBLOCKSIZE) {
632 if ( !m_pHashTree.m_bHashValid || m_pHashTree.m_nDataSize != m_pOwner->GetFileSize()) {
682 uint32 nHashCount = (PARTSIZE/EMBLOCKSIZE + ((PARTSIZE % EMBLOCKSIZE != 0)? 1 : 0)) * (m_pHashTree.m_nDataSize/PARTSIZE);
683 if (m_pHashTree.m_nDataSize % PARTSIZE != 0) {
684 nHashCount += (m_pHashTree.m_nDataSize % PARTSIZE)/EMBLOCKSIZE + (((m_pHashTree.m_nDataSize % PARTSIZE) % EMBLOCKSIZE != 0)? 1 : 0);
716 if ( !m_pHashTree.m_bHashValid || m_pHashTree.m_nDataSize != m_pOwner->GetFileSize() || m_pHashTree.m_nDataSize == 0) {
744 uint32 nExpectedCount = (PARTSIZE/EMBLOCKSIZE + ((PARTSIZE % EMBLOCKSIZE != 0)? 1 : 0)) * (m_pHashTree.m_nDataSize/PARTSIZE);
745 if (m_pHashTree.m_nDataSize % PARTSIZE != 0) {
746 nExpectedCount += (m_pHashTree.m_nDataSize % PARTSIZE)/EMBLOCKSIZE + (((m_pHashTree.m_nDataSize % PARTSIZE) % EMBLOCKSIZE != 0)? 1 : 0);
827 m_pHashTree.m_nDataSize = nSize;
1005 #define TESTSIZE m_pHashTree.m_nDataSize
1006 if (m_pHashTree.m_nDataSize <= EMBLOCKSIZE) {