Lines Matching refs:nBytePos
342 sal_Bool StgStrm::Pos2Page( sal_Int32 nBytePos ) in Pos2Page() argument
349 if( nBytePos < 0 || nBytePos >= nSize ) in Pos2Page()
350 nBytePos = nSize; in Pos2Page()
355 sal_Int32 nNew = nBytePos & nMask; in Pos2Page()
356 nOffset = (short) ( nBytePos & ~nMask ); in Pos2Page()
357 nPos = nBytePos; in Pos2Page()
385 if( nBytePos == nSize && nBgn == STG_EOF && !nRel && !nOffset ) in Pos2Page()
399 StgPage* StgStrm::GetPhysPage( sal_Int32 nBytePos, sal_Bool bForce ) in GetPhysPage() argument
401 if( !Pos2Page( nBytePos ) ) in GetPhysPage()
496 sal_Bool StgFATStrm::Pos2Page( sal_Int32 nBytePos ) in Pos2Page() argument
499 if( nBytePos < 0 || nBytePos >= nSize ) in Pos2Page()
500 nBytePos = nSize ? nSize - 1 : 0; in Pos2Page()
501 nPage = nBytePos / nPageSize; in Pos2Page()
502 nOffset = (short) ( nBytePos % nPageSize ); in Pos2Page()
503 nPos = nBytePos; in Pos2Page()
512 StgPage* StgFATStrm::GetPhysPage( sal_Int32 nBytePos, sal_Bool bForce ) in GetPhysPage() argument
514 OSL_ENSURE( nBytePos >= 0, "The value may not be negative!" ); in GetPhysPage()
515 return rIo.Get( nBytePos / ( nPageSize >> 2 ), bForce ); in GetPhysPage()