I'm using unsigned char as the element type here since it's the most appropriate for the data I'm saving, so stringstream doesn't seem right, but the more I look at this gibberish the more confused I become, so I thought I'd ask here.
Is there a way (and if so, how) to set up an input stream that will write unsigned char data into a buffer which will expand as data is added?
Is it possible that I could use a single STL type in the underlying system and then have the pair of top-level functions feed the system either an ofstream or a buffer-stream? (polymorphism)
I mean I guess if it comes down to it I can create a new helper type that will figure it out one way or the other, but I get the feeling that underneath all this "thing&<derp>::moocow<wtf>&&&" madness this is something that STL can do easily.
Any advice would be greatly appreciated. Thank you.
Edit - Also, I wonder if I just have a really bad collection of docs here. Does anyone have any suggestions for somewhere I can get some good STL docs that explain what parts are actually intended to be used and what parts are just implementation or alien conspiracy?
Edited by Khatharr, 20 December 2012 - 06:57 PM.






