25 Dec
2017
25 Dec
'17
9:05 a.m.
On 12/25/17 01:28, Olaf van der Spek via Boost wrote:
On Sun, Dec 24, 2017 at 6:04 PM, Peter Dimov via Boost
wrote: It should be possible to create portable ones based on Endian's buffer types, one just needs to choose an appropriate size for 'int' (32 bits would probably be fine here) and 'long' (32, 48, or 64? hard to say.)
48?? ;)
How about variable-width encoding? Hard-coding the size of int might be problematic.
I think, the main problem is not encoding but what to do if the encoded value does not fit in the type on the decoding end.