Lines Matching refs:nBytes
409 sal_Bool StgStrm::Copy( sal_Int32 nFrom, sal_Int32 nBytes ) in Copy() argument
415 sal_Int32 nPgs = ( nBytes + nPageSize - 1 ) / nPageSize; in Copy()
438 sal_Bool StgStrm::SetSize( sal_Int32 nBytes ) in SetSize() argument
440 if ( nBytes < 0 || !pFat ) in SetSize()
445 sal_Int32 nNew = ( ( nBytes + nPageSize - 1 ) / nPageSize ) * nPageSize; in SetSize()
458 sal_Bool bAll = sal_Bool( nBytes == 0 ); in SetSize()
459 if( !Pos2Page( nBytes ) || !pFat->FreePages( nPage, bAll ) ) in SetSize()
467 if( !nSize || !nBytes ) in SetSize()
469 pEntry->aEntry.SetSize( nBytes ); in SetSize()
472 nSize = nBytes; in SetSize()
645 sal_Bool StgFATStrm::SetSize( sal_Int32 nBytes ) in SetSize() argument
647 if ( nBytes < 0 ) in SetSize()
653 ( nBytes + ( nPageSize - 1 ) ) / nPageSize ) ; in SetSize()
672 nBytes += nMasterAlloc << 2; in SetSize()
727 nBytes += 4; in SetSize()
729 ( nBytes + ( nPageSize - 1 ) ) / nPageSize ); in SetSize()
798 sal_Bool StgDataStrm::SetSize( sal_Int32 nBytes ) in SetSize() argument
803 nBytes = ( ( nBytes + nIncr - 1 ) / nIncr ) * nIncr; in SetSize()
805 if( ( nOldSz != nBytes ) ) in SetSize()
807 if( !StgStrm::SetSize( nBytes ) ) in SetSize()
818 Pos2Page( nBytes ); in SetSize()
860 short nBytes = nPageSize - nOffset; in Read() local
863 if( (sal_Int32) nBytes > n ) in Read()
864 nBytes = (short) n; in Read()
865 if( nBytes ) in Read()
868 if( nBytes == nPageSize ) in Read()
875 memcpy( p, pPg->GetData(), nBytes ); in Read()
876 nRes = nBytes; in Read()
889 memcpy( p, (sal_uInt8*)pPg->GetData() + nOffset, nBytes ); in Read()
890 nRes = nBytes; in Read()
896 if( nRes != nBytes ) in Read()
921 short nBytes = nPageSize - nOffset; in Write() local
924 if( (sal_Int32) nBytes > n ) in Write()
925 nBytes = (short) n; in Write()
926 if( nBytes ) in Write()
929 if( nBytes == nPageSize ) in Write()
936 memcpy( pPg->GetData(), p, nBytes ); in Write()
938 nRes = nBytes; in Write()
951 memcpy( (sal_uInt8*)pPg->GetData() + nOffset, p, nBytes ); in Write()
953 nRes = nBytes; in Write()
959 if( nRes != nBytes ) in Write()
1014 short nBytes = nPageSize - nOffset; in Read() local
1015 if( (sal_Int32) nBytes > n ) in Read()
1016 nBytes = (short) n; in Read()
1017 if( nBytes ) in Read()
1022 short nRes = (short) pData->Read( (sal_uInt8*)pBuf + nDone, nBytes ); in Read()
1028 if( nRes != nBytes ) in Read()
1052 short nBytes = nPageSize - nOffset; in Write() local
1053 if( (sal_Int32) nBytes > n ) in Write()
1054 nBytes = (short) n; in Write()
1055 if( nBytes ) in Write()
1060 || ( pData->GetSize() < ( nDataPos + nBytes ) in Write()
1061 && !pData->SetSize( nDataPos + nBytes ) ) ) in Write()
1065 short nRes = (short) pData->Write( (sal_uInt8*)pBuf + nDone, nBytes ); in Write()
1071 if( nRes != nBytes ) in Write()