Re: Expressing large integer values in D-Bus APIs

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Mon, 17 Jul 2017 15:34:08 -0700, Thiago Macieira wrote:

> I'd recommend you just follow regular "bigint" type marshalling in
> other binary protocols.

Several years ago I came up with a variation
<http://www.codecodex.com/wiki/Variable-Length_Integers> on the scheme
used in Standard MIDI files. By applying an offset adjustment at each
stage in the shift, I create a fully bijective encoding, while making
the packing scheme ever so slightly more efficient.
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.