Skip to main content
gamedev.net
🔒 Locked

Streambuf issues again

Started by KulSeran Apr 6, 2007 at 2:35 PM 0 replies 600+ views
Original Post
KulSeran
KulSeran
Ok, so i've been playing with streambufs to get some extra functionality out of a standard IOstream. And i got it working, sorta. But I ran into a major snag. The iostream works great if I use << and >> operators, but it doesn't work with read() and write() member functions. I overloaded underflow(), overflow(), and uflow() on my streambuf, but if I call read()/write() it doesnt even reach my functions, but it does with << and >>. Now, I need the read and write to work for a few things, so any pointers on what might be wrong? (i can post code if needed, but my guess is im just missing a function overload somewhere, kinda like when i wanted to get seekg/seekp to work, and had to overload some default-disabled members of streambuf objects) --edit: Whoops... this prolly goes in general programming. Sorry.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.