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
This is a bad interface design because the length field duplicates the buf.size(). At what situations can those differ? Should they differ? It is not documented and unclear.
Furthermore, the class can (and arguably should) be replaced with std::string.
The text was updated successfully, but these errors were encountered:
Hehe...yeah I agree its pretty bad. The original idea was to have something like asio buffers which users can later customize....but that never happened. For now I will just change it to use just plain STL.
The class Buffer has
This is a bad interface design because the
length
field duplicates thebuf.size()
. At what situations can those differ? Should they differ? It is not documented and unclear.Furthermore, the class can (and arguably should) be replaced with std::string.
The text was updated successfully, but these errors were encountered: