You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the StreamBuffer is used to encode a large Glow tree into an S101 message with multiple packets of a given maximum size, two packets will be created, the first with the specified length, the second will be the length of all the remaining data. This is due to the StreamBuffer's clear function not clearing the internal buffer correctly.
Current version:-
template<typename ValueType, unsigned short ChunkSize>
inline void StreamBuffer<ValueType, ChunkSize>::clear()
{ StreamBuffer empty();
swap(empty);
}
If the StreamBuffer is used to encode a large Glow tree into an S101 message with multiple packets of a given maximum size, two packets will be created, the first with the specified length, the second will be the length of all the remaining data. This is due to the StreamBuffer's clear function not clearing the internal buffer correctly.
Current version:-
template<typename ValueType, unsigned short ChunkSize>
inline void StreamBuffer<ValueType, ChunkSize>::clear()
{
StreamBuffer empty();
swap(empty);
}
Suggested solution:-
template<typename ValueType, unsigned short ChunkSize>
inline void StreamBuffer<ValueType, ChunkSize>::clear()
{
StreamBuffer empty(max_size());
swap(empty);
}
The text was updated successfully, but these errors were encountered: