Home
last modified time | relevance | path

Searched refs:nBytesToRead (Results 1 – 25 of 111) sorted by relevance

12345

/trunk/main/jurt/java/jurt/src/main/java/com/sun/star/comp/connections/
H A DPipedConnection.java171 …public synchronized int read(/*OUT*/byte[][] aReadBytes, int nBytesToRead) throws com.sun.star.io.… in read() argument
172 aReadBytes[0] = new byte[nBytesToRead]; in read()
174 … if(DEBUG) System.err.println("##### PipedConnection.read - bytes:" + nBytesToRead + " at:" + _in); in read()
177 while(nBytesToRead > 0 && (_in != _out || !_closed)) { in read()
190 int bytes = Math.min(nBytesToRead, _out - _in); in read()
192 … System.arraycopy(_buffer, _in, aReadBytes[0], aReadBytes[0].length - nBytesToRead, bytes); in read()
194 nBytesToRead -= bytes; in read()
198 int bytes = Math.min(nBytesToRead, _buffer.length - _in); in read()
200 … System.arraycopy(_buffer, _in, aReadBytes[0], aReadBytes[0].length - nBytesToRead, bytes); in read()
202 nBytesToRead -= bytes; in read()
[all …]
/trunk/main/comphelper/source/streaming/
H A Dmemorystream.cxx60 virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead );
110 sal_Int32 SAL_CALL UNOMemoryStream::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) in readBytes() argument
112 if( nBytesToRead < 0 ) in readBytes()
115 nBytesToRead = std::min( nBytesToRead, available() ); in readBytes()
116 aData.realloc( nBytesToRead ); in readBytes()
118 if( nBytesToRead ) in readBytes()
122 memcpy( (void*)aData.getArray(), (void*)pCursor, nBytesToRead ); in readBytes()
124 mnCursor += nBytesToRead; in readBytes()
127 return nBytesToRead; in readBytes()
H A Dseqstream.cxx60 …_Int32 SAL_CALL SequenceInputStream::readBytes( Sequence<sal_Int8>& aData, sal_Int32 nBytesToRead ) in readBytes() argument
66 if (nBytesToRead < 0) in readBytes()
69 if (nAvail < nBytesToRead) in readBytes()
70 nBytesToRead = nAvail; in readBytes()
72 aData.realloc(nBytesToRead); in readBytes()
73 memcpy(aData.getArray(), m_aData.getConstArray() + m_nPos, nBytesToRead); in readBytes()
74 m_nPos += nBytesToRead; in readBytes()
76 return nBytesToRead; in readBytes()
H A Doslfile2streamwrap.cxx56 …CALL OSLInputStreamWrapper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) in readBytes() argument
61 if (nBytesToRead < 0) in readBytes()
66 aData.realloc(nBytesToRead); in readBytes()
69 FileBase::RC eError = m_pFile->read((void*)aData.getArray(), nBytesToRead, nRead); in readBytes()
74 if (nRead < (sal_uInt32)nBytesToRead) in readBytes()
/trunk/main/xmlscript/source/xml_helper/
H A Dxml_byteseq.cxx57 Sequence< sal_Int8 > & rData, sal_Int32 nBytesToRead );
67 Sequence< sal_Int8 > & rData, sal_Int32 nBytesToRead ) in readBytes() argument
69 nBytesToRead = ((nBytesToRead > _seq.getLength() - _nPos) in readBytes()
71 : nBytesToRead); in readBytes()
73 ByteSequence aBytes( _seq.getConstArray() + _nPos, nBytesToRead ); in readBytes()
75 _nPos += nBytesToRead; in readBytes()
76 return nBytesToRead; in readBytes()
/trunk/main/package/source/package/zippackage/
H A DZipPackageBuffer.cxx45 sal_Int32 SAL_CALL ZipPackageBuffer::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead in readBytes() argument
47 if (nBytesToRead < 0) in readBytes()
50 if (nBytesToRead + m_nCurrent > m_nEnd) in readBytes()
51 nBytesToRead = static_cast < sal_Int32 > (m_nEnd - m_nCurrent); in readBytes()
53 aData.realloc ( nBytesToRead ); in readBytes()
54 memcpy(aData.getArray(), m_aBuffer.getConstArray() + m_nCurrent, nBytesToRead); in readBytes()
55 m_nCurrent +=nBytesToRead; in readBytes()
56 return nBytesToRead; in readBytes()
/trunk/main/package/source/package/zipapi/
H A DMemoryByteGrabber.hxx51 sal_Int32 nBytesToRead ) in readBytes() argument
53 if ( nBytesToRead < 0) in readBytes()
56 if (nBytesToRead + mnCurrent > mnEnd) in readBytes()
57 nBytesToRead = mnEnd - mnCurrent; in readBytes()
59 aData.realloc ( nBytesToRead ); in readBytes()
60 rtl_copyMemory( aData.getArray(), mpBuffer + mnCurrent, nBytesToRead ); in readBytes()
61 mnCurrent += nBytesToRead; in readBytes()
62 return nBytesToRead; in readBytes()
/trunk/main/xmlhelp/source/cxxhelp/provider/
H A Dbufferedinputstream.cxx125 …Int32 SAL_CALL BufferedInputStream::readBytes( Sequence< sal_Int8 >& aData,sal_Int32 nBytesToRead ) in readBytes() argument
129 if( 0 > nBytesToRead ) in readBytes()
132 if( m_nBufferLocation + nBytesToRead > m_nBufferSize ) in readBytes()
133 nBytesToRead = m_nBufferSize - m_nBufferLocation; in readBytes()
135 if( aData.getLength() < nBytesToRead ) in readBytes()
136 aData.realloc(nBytesToRead); in readBytes()
140 nBytesToRead); in readBytes()
142 return nBytesToRead; in readBytes()
/trunk/main/io/source/stm/
H A Domark.cxx461 virtual sal_Int32 SAL_CALL readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) ;
529 sal_Int32 OMarkableInputStream::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) in readBytes() argument
537 nBytesRead = m_input->readBytes( aData, nBytesToRead ); in readBytes()
544 if( m_pBuffer->getSize() - m_nCurrentPos < nBytesToRead ) { in readBytes()
545 sal_Int32 nToRead = nBytesToRead - ( m_pBuffer->getSize() - m_nCurrentPos ); in readBytes()
562 nBytesToRead = nBytesToRead - (nToRead-nRead); in readBytes()
566 OSL_ASSERT( m_pBuffer->getSize() - m_nCurrentPos >= nBytesToRead ); in readBytes()
568 m_pBuffer->readAt( m_nCurrentPos , aData , nBytesToRead ); in readBytes()
570 m_nCurrentPos += nBytesToRead; in readBytes()
571 nBytesRead = nBytesToRead; in readBytes()
H A Dopipe.cxx68 virtual sal_Int32 SAL_CALL readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead);
140 sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) in readBytes() argument
154 if( m_bOutputStreamClosed && nBytesToRead > nOccupiedBufferLen ) in readBytes()
156 nBytesToRead = nOccupiedBufferLen; in readBytes()
159 if( nOccupiedBufferLen < nBytesToRead ) in readBytes()
166 m_pFIFO->read( aData , nBytesToRead ); in readBytes()
167 return nBytesToRead; in readBytes()
H A Dstreamhelper.cxx127 void MemRingBuffer::readAt( sal_Int32 nPos, Sequence<sal_Int8> &seq , sal_Int32 nBytesToRead ) const in readAt()
129 if( nPos + nBytesToRead > m_nOccupiedBuffer ) { in readAt()
138 seq.realloc( nBytesToRead ); in readAt()
140 if( nStartReadingPos + nBytesToRead > m_nBufferLen ) { in readAt()
143 memcpy( &(seq.getArray()[nDeltaLen]), m_p , nBytesToRead - nDeltaLen ); in readAt()
146 memcpy( seq.getArray() , &(m_p[nStartReadingPos]) , nBytesToRead ); in readAt()
H A Dstreamhelper.hxx55 virtual void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )=0;
82 virtual void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const=0;
99 virtual void readAt( sal_Int32 nPos, Sequence<sal_Int8> & , sal_Int32 nBytesToRead ) const;
131 virtual void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead );
/trunk/main/xmlsecurity/tools/standalone/mscsfit/
H A Dhelper.hxx83 sal_Int32 nBytesToRead in readBytes() argument
86 nBytesToRead = ( nBytesToRead > m_seq.getLength() - nPos ) ? in readBytes()
88 nBytesToRead ; in readBytes()
89 aData = Sequence< sal_Int8 > ( &( m_seq.getConstArray()[nPos] ), nBytesToRead ) ; in readBytes()
90 nPos += nBytesToRead ; in readBytes()
91 return nBytesToRead ; in readBytes()
/trunk/main/xmlsecurity/tools/standalone/csfit/
H A Dhelper.hxx89 sal_Int32 nBytesToRead in readBytes() argument
92 nBytesToRead = ( nBytesToRead > m_seq.getLength() - nPos ) ? in readBytes()
94 nBytesToRead ; in readBytes()
95 aData = Sequence< sal_Int8 > ( &( m_seq.getConstArray()[nPos] ), nBytesToRead ) ; in readBytes()
96 nPos += nBytesToRead ; in readBytes()
97 return nBytesToRead ; in readBytes()
/trunk/main/package/qa/storages/
H A DBorderedStream.java78 public synchronized int readBytes( byte[][] aData, int nBytesToRead ) in readBytes() argument
82 if ( m_pBytes != null && nBytesToRead > 0 ) in readBytes()
85 if ( nBytesToRead > nAvailable ) in readBytes()
86 nBytesToRead = nAvailable; in readBytes()
88 aData[0] = new byte[nBytesToRead]; in readBytes()
89 for ( int nInd = 0; nInd < nBytesToRead; nInd++ ) in readBytes()
92 nRead = nBytesToRead; in readBytes()
/trunk/main/i18npool/source/localedata/
H A Dsaxparser.cxx76 virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) in readBytes() argument
78 nBytesToRead = (nBytesToRead > m_seq.getLength() - nPos ) ? in readBytes()
80 nBytesToRead; in readBytes()
81 aData = Sequence< sal_Int8 > ( &(m_seq.getConstArray()[nPos]) , nBytesToRead ); in readBytes()
82 nPos += nBytesToRead; in readBytes()
83 return nBytesToRead; in readBytes()
/trunk/main/vcl/unx/generic/fontmanager/
H A Dhelper.cxx273 unsigned int nBytesToRead = buffer[2] | buffer[3] << 8 | buffer[4] << 16 | buffer[5] << 24; in convertPfbToPfa() local
299 unsigned char* pBuffer = new unsigned char[ nBytesToRead+1 ]; in convertPfbToPfa()
301 if( ! rInFile.read( pBuffer, nBytesToRead, nRead ) && nRead == nBytesToRead ) in convertPfbToPfa()
307 unsigned char * pWriteBuffer = new unsigned char[ nBytesToRead ]; in convertPfbToPfa()
309 for( unsigned int i = 0; i < nBytesToRead; i++ ) in convertPfbToPfa()
330 for( unsigned int i = 0; i < nBytesToRead && bSuccess; i++ ) in convertPfbToPfa()
/trunk/main/ucb/source/ucp/ftp/
H A Dftpinpstr.cxx71 sal_Int32 nBytesToRead) in readBytes() argument
76 sal_uInt64 nBytesRequested( nBytesToRead ); in readBytes()
84 if ( 0 <= nBytesToRead && aData.getLength() < nBytesToRead ) in readBytes()
85 aData.realloc( nBytesToRead ); in readBytes()
/trunk/main/scripting/java/com/sun/star/script/framework/io/
H A DXInputStreamImpl.java38 …public int readBytes( /*OUT*/byte[][] aData, /*IN*/int nBytesToRead ) throws com.sun.star.io.NotCo… in readBytes() argument
40 aData[ 0 ] = new byte[ nBytesToRead ]; in readBytes()
47 …while ( ( nBytesToRead > 0 ) && ( bytesRead = is.read( aData[ 0 ], totalBytesRead, nBytesToRead ) … in readBytes()
50 nBytesToRead -= bytesRead; in readBytes()
/trunk/main/io/source/acceptor/
H A Dacc_pipe.cxx53 virtual sal_Int32 SAL_CALL read( Sequence< sal_Int8 >& aReadBytes, sal_Int32 nBytesToRead );
85 sal_Int32 PipeConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead ) in read() argument
89 if( aReadBytes.getLength() < nBytesToRead ) in read()
91 aReadBytes.realloc( nBytesToRead ); in read()
93 sal_Int32 n = m_pipe.read( aReadBytes.getArray(), nBytesToRead ); in read()
/trunk/main/sax/test/
H A Dsaxdemo.cxx74 virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) in readBytes() argument
76 nBytesToRead = (nBytesToRead > m_seq.getLength() - nPos ) ? in readBytes()
78 nBytesToRead; in readBytes()
79 aData = Sequence< sal_Int8 > ( &(m_seq.getConstArray()[nPos]) , nBytesToRead ); in readBytes()
80 nPos += nBytesToRead; in readBytes()
81 return nBytesToRead; in readBytes()
/trunk/main/oox/source/vml/
H A Dvmlinputstream.cxx284 sal_Int32 SAL_CALL InputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead ) in readBytes() argument
286 if( nBytesToRead < 0 ) in readBytes()
289 rData.realloc( nBytesToRead ); in readBytes()
292 while( (nBytesToRead > 0) && !mxTextStrm->isEOF() ) in readBytes()
295 sal_Int32 nReadSize = ::std::min( nBytesToRead, maBuffer.getLength() - mnBufferPos ); in readBytes()
300 nBytesToRead -= nReadSize; in readBytes()
/trunk/main/unotools/source/streaming/
H A Dstreamhelper.cxx45 …AL_CALL OInputStreamHelper::readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) in readBytes() argument
50 if (nBytesToRead < 0) in readBytes()
54 aData.realloc(nBytesToRead); in readBytes()
57 ErrCode nError = m_xLockBytes->ReadAt(m_nActPos, (void*)aData.getArray(), nBytesToRead, &nRead); in readBytes()
65 if (nRead < (sal_uInt32)nBytesToRead) in readBytes()
/trunk/main/io/source/TextInputStream/
H A DTextInputStream.cxx105 virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead );
286 sal_Int32 nBytesToRead = READ_BYTE_COUNT; in implReadNext() local
287 sal_Int32 nRead = mxStream->readSomeBytes( mSeqSource, nBytesToRead ); in implReadNext()
289 if( nRead < nBytesToRead ) in implReadNext()
380 sal_Int32 OTextInputStream::readBytes( Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) in readBytes() argument
382 return mxStream->readBytes( aData, nBytesToRead ); in readBytes()
/trunk/main/connectivity/source/drivers/jdbc/
H A DInputStream.cxx78 …nputStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) in readBytes() argument
80 if (nBytesToRead < 0) in readBytes()
87 jbyteArray pByteArray = t.pEnv->NewByteArray(nBytesToRead); in readBytes()
93 out = t.pEnv->CallIntMethod( object, mID, pByteArray, 0, nBytesToRead ); in readBytes()

12345