[Sphyrna-devel] decode.py: Decimal numbers?
Elrond
elrond+linuxtogo.org at samba-tng.org
Fri Jul 27 23:06:28 CEST 2007
On Fri, Jul 27, 2007 at 02:38:22PM -0600, Chris Kuethe wrote:
> On 7/27/07, Elrond <elrond+linuxtogo.org at samba-tng.org> wrote:
> > How do we distinguish decimal numbers from hex numbers in
> > the output?
>
> Anytime I write a decoder for something, numbers are decimal unless
> prefixed with "0x" in which case they're hex.
Well, having hex as default is a good thing, currently: We
still have plenty of single bytes, that have to be guessed
up. And we can only match them, if we can easily guess them
as int8,int16,int32. Without that, I would not have been
able to find another "setup/answer"-thingy in the protocol.
(not yet commited, still starring at it).
But for a "we know the protocol" decoder, you're right:
decimal normally, denote hex by 0x.
Thanks for your comment.
Elrond
More information about the Sphyrna-devel
mailing list