Ticket #9235 (closed Feature Requests: fixed)
Construction from binary data
|Reported by:||psiha||Owned by:||johnmaddock|
|Milestone:||To Be Determined||Component:||multiprecision|
Description (last modified by psiha) (diff)
I didn't find a way to directly construct fixed sized cpp_int from existing binary data (a static array, for example an RSA key hardcoded into a .cpp after being generated with OpenSSL)... I had to resort to either using the from-string constructor or inserting the data byte by byte with 8 bit shifts and or-ing in a loop both of which are ugly and inefficient: https://svn.boost.org/trac/boost/ticket/9233 https://svn.boost.org/trac/boost/ticket/9234 https://svn.boost.org/trac/boost/ticket/9243 ...
Ideally it would be possible to create static fixed size numbers as one creates PODs, without a dynamic initializer being created by the compiler..
- Status changed from new to closed
- Resolution set to wontfix
- Status changed from closed to reopened
- Resolution wontfix deleted
- Type changed from Bugs to Feature Requests