Jump to content
  • Advertisement
Sign in to follow this  

Streambuf issues again

This topic is 4270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!