replaced wxStream::GetSize() with GetLength() (still keep the former but it will be deprecated) (second part of patch 1063498)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-11-10 21:10:30 +00:00
parent 30984deafc
commit 588066b7a3
13 changed files with 79 additions and 48 deletions

View File

@@ -657,6 +657,12 @@ wxStreamBase::~wxStreamBase()
{
}
size_t wxStreamBase::GetSize() const
{
wxFileOffset length = GetLength();
return length == wxInvalidOffset ? 0 : (size_t)length;
}
wxFileOffset wxStreamBase::OnSysSeek(wxFileOffset WXUNUSED(seek), wxSeekMode WXUNUSED(mode))
{
return wxInvalidOffset;
@@ -957,7 +963,7 @@ wxCountingOutputStream::wxCountingOutputStream ()
m_currentPos = 0;
}
size_t wxCountingOutputStream::GetSize() const
wxFileOffset wxCountingOutputStream::GetLength() const
{
return m_lastcount;
}
@@ -1218,9 +1224,9 @@ wxFileOffset wxBufferedOutputStream::OnSysTell() const
return m_parent_o_stream->TellO();
}
size_t wxBufferedOutputStream::GetSize() const
wxFileOffset wxBufferedOutputStream::GetLength() const
{
return m_parent_o_stream->GetSize() + m_o_streambuf->GetIntPosition();
return m_parent_o_stream->GetLength() + m_o_streambuf->GetIntPosition();
}
void wxBufferedOutputStream::SetOutputStreamBuffer(wxStreamBuffer *buffer)