> Why does this:
>    char h[256] = { "happyhappyhappy" };
>    StringSource ( h, true, new FileSink( "George.txt" ) );
>
> fill George with happiness while this:
>    byte i[256] = { "joyjoyjoy" };
>    StringSource ( i, true, new FileSink( "John.txt" ) );

For byte * input, StringSouce doesn't assume that it's zero terminated, so
you need to give it a length. Look at the StringSource constructors.

> And why is the output from this:
>    char j[256] = { "laughter" };
>    StringSource k( j, false, new
> FileSink( "Harry.txt" ) );//.PumpAll();
>    if( !k.AnyRetrievable() )
>        std::cout << "Nothing there" << endl;
>    if( !k.AnyMessages() )
>        std::cout << "No Messages" << endl;
>    if( !k.MaxRetrievable() )
>        std::cout << "No bytes" << endl;
>    if( !k.SourceExhausted() )
>        std::cout << "Stuff Available" << endl;
>
> this:
> Nothing there
> No Messages
> No bytes
> Stuff Available

The first three are referring to messages that you can retrieve with "Get",
the last is telling you whether there is anything left to "Pump". Read
http://www.cryptopp.com/cgi-bin/fom.cgi?file=29 if you don't know the
difference between the two. 



--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to