Avi wrote: > Submitted for your approval. > > IOW: couldn't find an implementation and had some spare time on my hands. > > *The works:* > I basically duplicated files.h/.cpp and modified all the stream related code > to work with a CFile instead. > I had to bypass a few bumps on the way such as missing functionality > (namely: eof and peek), const pointers, etc. > I can't say that I made all possible tests and covered all bases, but all in > all it works for me. > > Comments are most welcome. > Doesn't support unicode filenames, unless file owned externally :). (You won't believe all the ways one can spell "Program Files"...)
Otherwise I will probably use that as an additional example when rewriting my arbitrary chain file stream, thanks. Currently it inherits from stringstream, collects data into itself and then pumps it into fstream file sink through a filter chain... Not most efficient... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
