On Tuesday, May 2, 2017 at 2:54:31 PM UTC-4, Jeffrey Walton wrote: > > ... > >> I have several problems with this code. First of all, the file is not >> processed entirely. Instead, one portion is processed, and then it repeats >> trough the whole file. This is obviously not what I want to do, I need to >> process the whole file, but in small chunks. Also, SourceExhausted() doesnt >> return true once it reaches the end of the file (thus why there is a break >> in this code when there shouldn't be needed). >> >> I know there are ways to do this directly without the need of a buffer, >> but I need to pass it trough memory because I need to implement this >> somewhere else, and I need all this data to be processed first in memory, >> so I cant use a FileSink. >> > > The basic skeleton program of manually pumping or chunking a large file > can be found at > https://groups.google.com/d/msg/cryptopp-users/WezFWb9XQ84/NoFUitCrDQAJ. > > We really need a wiki page on the subject because it comes up on occasion > for resource constrained devices. Let me put something together so we can > cite a wiki page rather than old messages from the list. >
Here's the wiki page on manually pumping data: https://www.cryptopp.com/wiki/Pumping_Data . Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.