Gavin Andresen d5d1425657 Bug fix: CDataStream::GetAndClear() when nReadPos > 0
Changed CDataStream::GetAndClear() to use the most obvious
get get and clear instead of a tricky swap().

Added a unit test for CDataStream insert/erase/GetAndClear.

Note: GetAndClear() is not performance critical, it is used only
by the send-a-message-to-the-network code. Bug was not noticed
before now because the send-a-message code never erased from the
stream.
2013-10-29 11:20:14 +10:00
..
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-21 09:22:48 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-15 11:09:29 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 22:25:44 +02:00
2013-06-24 00:56:45 +02:00
2013-10-20 15:25:06 -04:00
2013-10-21 09:22:48 +02:00
2013-10-20 22:25:44 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-21 09:22:48 +02:00
2013-10-20 22:25:44 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 22:25:44 +02:00
2013-10-20 22:25:44 +02:00
2013-10-20 22:25:44 +02:00
2013-10-20 22:25:44 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 22:25:44 +02:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 15:25:06 -04:00
2013-10-20 22:25:44 +02:00
2013-10-20 22:25:44 +02:00