Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Created Unassigned: rawptr_buffer::can_read() inconsistent with other buffers [15]

$
0
0
As per discussion:

http://casablanca.codeplex.com/discussions/439481

When the current position on a rawptr_buffer is at EOF, can_read() returns false. Is this the intended behaviour? Why is it different from the other types of buffers?
My problem with this is that it prevents the seekpos method to work and get back to the beginning of the buffer.

---

I'd like to say that this is a bug, but that would be somewhat dishonest. :-)

It's not a bug in that this is what I intended when I wrote the code, but clearly I didn't put enough thought into it. It's a bug when compared with reasonable behavior of the buffer.

Can you open this as an issue for us to track, please?

Niklas



Viewing all articles
Browse latest Browse all 4845

Trending Articles