mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
SF#3563999: Size BinaryWriter based on buffer's capacity(), not size()
This commit is contained in:
@@ -179,14 +179,18 @@ public:
|
||||
BasicMemoryBinaryReader(Buffer<T>& data, StreamByteOrder byteOrder = NATIVE_BYTE_ORDER):
|
||||
BinaryReader(_istr, byteOrder),
|
||||
_data(data),
|
||||
_istr(data.begin(), data.size())
|
||||
_istr(data.begin(), data.capacity())
|
||||
{
|
||||
}
|
||||
|
||||
BasicMemoryBinaryReader(Buffer<T>& data, TextEncoding& encoding, StreamByteOrder byteOrder = NATIVE_BYTE_ORDER):
|
||||
BinaryReader(_istr, encoding, byteOrder),
|
||||
_data(data),
|
||||
_istr(data.begin(), data.size())
|
||||
_istr(data.begin(), data.capacity())
|
||||
{
|
||||
}
|
||||
|
||||
~BasicMemoryBinaryReader()
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user