I am trying to convert a std::string to cryptopp::byte like this
const byte* pt = reinterpret_cast<const byte*>(&alert[0]);

but it doesn't copy the full string, as confirmed by sizeof
sizeof(alert) = 24
sizeof(pt) = 8

why is it truncating to first 8 bytes?

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/84a85390-f299-4b30-9b6a-e914059143c2n%40googlegroups.com.

Reply via email to