Lines Matching refs:nLen
73 virtual bool write( const void* pBuf, unsigned int nLen ) throw();
75 virtual bool copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) throw();
76 …virtual unsigned int readOrigBytes( unsigned int nOrigOffset, unsigned int nLen, void* pBuf ) thro…
155 bool FileEmitContext::write( const void* pBuf, unsigned int nLen ) throw() in write() argument
160 sal_uInt64 nWrite = static_cast<sal_uInt64>(nLen); in write()
177 bool FileEmitContext::copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) throw() in copyOrigBytes() argument
179 if( nOrigOffset + nLen > m_nReadLen ) in copyOrigBytes()
187 void* pBuf = rtl_allocateMemory( nLen ); in copyOrigBytes()
191 if( osl_readFile( m_aReadHandle, pBuf, nLen, &nBytesRead ) != osl_File_E_None in copyOrigBytes()
192 || nBytesRead != static_cast<sal_uInt64>(nLen) ) in copyOrigBytes()
194 fprintf( stderr, "could not read %u bytes\n", nLen ); in copyOrigBytes()
198 bool bRet = write( pBuf, nLen ); in copyOrigBytes()
203 unsigned int FileEmitContext::readOrigBytes( unsigned int nOrigOffset, unsigned int nLen, void* pBu… in readOrigBytes() argument
205 if( nOrigOffset + nLen > m_nReadLen ) in readOrigBytes()
214 if( osl_readFile( m_aReadHandle, pBuf, nLen, &nBytesRead ) != osl_File_E_None ) in readOrigBytes()