FillBuf -> FillReadBuf

This commit is contained in:
Glenn Maynard
2006-02-28 05:10:54 +00:00
parent f6b45581b4
commit 1220fc988a
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -126,7 +126,7 @@ int RageFileObj::Read( void *pBuffer, size_t iBytes )
/* If buffering is enabled, and we need more data, fill the buffer. */
m_pReadBuf = m_pReadBuffer;
int iGot = FillBuf();
int iGot = FillReadBuf();
if( iGot == -1 )
return iGot;
if( iGot == 0 )
@@ -303,7 +303,7 @@ int RageFileObj::GetLine( RString &sOut )
/* We need more data. */
m_pReadBuf = m_pReadBuffer;
const int iSize = FillBuf();
const int iSize = FillReadBuf();
/* If we've read data already, then don't mark EOF yet. Wait until the
* next time we're called. */
@@ -338,7 +338,7 @@ int RageFileObj::PutLine( const RString &sStr )
/* Fill the internal buffer. This never marks EOF, since this is an internal, hidden
* read; EOF should only be set as a result of a real read. (That is, disabling buffering
* shouldn't cause the results of AtEOF to change.) */
int RageFileObj::FillBuf()
int RageFileObj::FillReadBuf()
{
/* Don't call this unless buffering is enabled. */
ASSERT( m_pReadBuffer != NULL );
+1 -1
View File
@@ -103,7 +103,7 @@ protected:
RString m_sError;
private:
int FillBuf();
int FillReadBuf();
void ResetBuf();
bool m_bEOF;