Added GSocket for Unix (only GTK for the moment)
Updated wxSocket to use GSocket API Added a progress bar to client.cpp Added CopyTo to wxMemoryOutputStream to copy the internal buffer to a specified buffer. Various changes/fixes to the high-level protocols FTP/HTTP Various Unicode fixes Removed sckint.* git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,5 +99,16 @@ off_t wxMemoryOutputStream::OnSysTell() const
|
||||
return m_o_streambuf->Tell();
|
||||
}
|
||||
|
||||
size_t wxMemoryOutputStream::CopyTo(char *buffer, size_t len) const
|
||||
{
|
||||
if (!buffer)
|
||||
return 0;
|
||||
|
||||
if (len > StreamSize())
|
||||
len = StreamSize();
|
||||
|
||||
memcpy(buffer, m_o_streambuf->GetBufferStart(), len);
|
||||
return len;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user