Lines Matching refs:nBytes
127 void BinaryInputStream::copyToStream( BinaryOutputStream& rOutStrm, sal_Int64 nBytes, sal_Int32 nAt… in copyToStream() argument
129 if( nBytes > 0 ) in copyToStream()
132 …sal_Int32 nBufferSize = getLimitedValue< sal_Int32, sal_Int64 >( nBytes, 0, (INPUTSTREAM_BUFFERSIZ… in copyToStream()
134 while( nBytes > 0 ) in copyToStream()
136 sal_Int32 nReadSize = getLimitedValue< sal_Int32, sal_Int64 >( nBytes, 0, nBufferSize ); in copyToStream()
140 nBytes -= nReadSize; in copyToStream()
142 nBytes = 0; in copyToStream()
180 sal_Int32 BinaryXInputStream::readData( StreamDataSequence& orData, sal_Int32 nBytes, size_t /*nAto… in readData() argument
183 if( !mbEof && (nBytes > 0) ) try in readData()
185 nRet = mxInStrm->readBytes( orData, nBytes ); in readData()
186 mbEof = nRet != nBytes; in readData()
195 sal_Int32 BinaryXInputStream::readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize ) in readMemory() argument
198 if( !mbEof && (nBytes > 0) ) in readMemory()
200 …sal_Int32 nBufferSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, INPUTSTREAM_BUFFERSIZE… in readMemory()
202 while( !mbEof && (nBytes > 0) ) in readMemory()
204 sal_Int32 nReadSize = getLimitedValue< sal_Int32, sal_Int32 >( nBytes, 0, nBufferSize ); in readMemory()
209 nBytes -= nBytesRead; in readMemory()
216 void BinaryXInputStream::skip( sal_Int32 nBytes, size_t /*nAtomSize*/ ) in skip() argument
220 mxInStrm->skipBytes( nBytes ); in skip()
236 sal_Int32 SequenceInputStream::readData( StreamDataSequence& orData, sal_Int32 nBytes, size_t /*nAt… in readData() argument
241 nReadBytes = getMaxBytes( nBytes ); in readData()
246 mbEof = nReadBytes < nBytes; in readData()
251 sal_Int32 SequenceInputStream::readMemory( void* opMem, sal_Int32 nBytes, size_t /*nAtomSize*/ ) in readMemory() argument
256 nReadBytes = getMaxBytes( nBytes ); in readMemory()
260 mbEof = nReadBytes < nBytes; in readMemory()
265 void SequenceInputStream::skip( sal_Int32 nBytes, size_t /*nAtomSize*/ ) in skip() argument
269 sal_Int32 nSkipBytes = getMaxBytes( nBytes ); in skip()
271 mbEof = nSkipBytes < nBytes; in skip()
314 sal_Int32 RelativeInputStream::readData( StreamDataSequence& orData, sal_Int32 nBytes, size_t nAtom… in readData() argument
319 sal_Int32 nMaxBytes = getMaxBytes( nBytes ); in readData()
322 mbEof = (nMaxBytes < nBytes) || mpInStrm->isEof(); in readData()
327 sal_Int32 RelativeInputStream::readMemory( void* opMem, sal_Int32 nBytes, size_t nAtomSize ) in readMemory() argument
332 sal_Int32 nMaxBytes = getMaxBytes( nBytes ); in readMemory()
335 mbEof = (nMaxBytes < nBytes) || mpInStrm->isEof(); in readMemory()
340 void RelativeInputStream::skip( sal_Int32 nBytes, size_t nAtomSize ) in skip() argument
344 sal_Int32 nSkipBytes = getMaxBytes( nBytes ); in skip()
347 mbEof = nSkipBytes < nBytes; in skip()