I'm looking at the docs:
size_t  Put (const byte *inString, size_t length, bool blocking=true)
input multiple bytes

It would appear to me that this should return the number of bytes
written but it always seems to return 0.
  word32 val=123456;
  Sink *sink=new FileSink("test.bin");

  cout << "Put returned: " << sink->Put((const byte *)&val,sizeof(val)) << endl;
  cout << "PutWord32 returned: " << sink->PutWord32(val) << endl;
  delete sink;

How can I tell how many bytes were written?

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