
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