On Friday, March 5, 2021 at 5:23:20 PM UTC-5 devhar...@gmail.com wrote:

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

pt is a pointer. A pointer on x86_64 is 8 bytes.

Jeff

-- 
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/783fea67-e0af-421b-b11e-8cbee435fe14n%40googlegroups.com.

Reply via email to