Wireshark mailing list archives

Re: 16 byte integer decoding


From: Guy Harris <gharris () sonic net>
Date: Mon, 22 Mar 2021 14:24:38 -0700

On Mar 22, 2021, at 11:35 AM, Constantine Gavrilov <CONSTG () il ibm com> wrote:

There are two repeated patterns for this:

1. For capacity (bytes, blocks, etc.).
2. For units (how many times).

So, I am thinking about two formats:
1. For bytes.
2. For units.

The implementation would get high and low 64-bits, and compute a 64-bit value in units of 10^x (depending on the 
value) for units, and in units of KiB-ZiB (depending on the value) for bytes.

So a value of 12 would be shown as "1.2 deca-XXX" for units, and a value of 1 would be shown as "1/1024 KiB bytes" for 
bytes?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: