Lines Matching refs:nBytes
91 void BinaryXOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t nAtomSize ) in writeMemory() argument
93 if( mxOutStrm.is() && (nBytes > 0) ) in writeMemory()
95 …sal_Int32 nBufferSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, (OUTPUTSTREAM_BUFFERSI… in writeMemory()
97 while( nBytes > 0 ) in writeMemory()
99 … sal_Int32 nWriteSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, nBufferSize ); in writeMemory()
104 nBytes -= nWriteSize; in writeMemory()
123 void SequenceOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) in writeMemory() argument
125 if( mpData && (nBytes > 0) ) in writeMemory()
127 if( mpData->getLength() - mnPos < nBytes ) in writeMemory()
128 const_cast< StreamDataSequence* >( mpData )->realloc( mnPos + nBytes ); in writeMemory()
129 …cast< StreamDataSequence* >( mpData )->getArray() + mnPos, pMem, static_cast< size_t >( nBytes ) ); in writeMemory()
130 mnPos += nBytes; in writeMemory()