[conversion] Is there a boost lib for converting octet array to integral types?
8 Jul
2010
8 Jul
'10
7:41 p.m.
Hi all, Is there a boost utility for converting an array of octets to an integral type? Something along the lines of: boost::uint8_t const octetBuf[] = {0x23, 0x4e}; boost::uint32_t const thirtyTwoBit = some_function(octetBuf); Where some_function takes care of the padding based on endianness. Thanks, -Mostafa
5242
Age (days ago)
5242
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mostafa