bytes_after_return in XGetWindowProperty man pages

Julian Bradfield jcb+fdt at julianbradfield.org
Tue Oct 15 08:45:57 UTC 2024


On 2024-10-13, Peter Kozich (GM) <peter.t.kozich at gmail.com> wrote:
> Everywhere in all manuals on XGetWindowProperty() I see these formulas:
>
>                  N = actual length of the stored property in bytes
>                       (even if the format is 16 or 32)
>                  I = 4 * long_offset
>                  T = N - I
>                  L = MINIMUM(T, 4 * long_length)
>                  A = N - (I + L)

T is the number of bytes in the property.
L is the number of data bytes retrieved, which will be either T, if
all of it was retrieved, or 4*long_length if long_length was specified
and is less than the length of the property.
A is the number of bytes not retrieved.


> It was difficult for me to understand them, and at first I thought it
> was because they were merely anti-intutive a little bit. But then, my
> opinion changed, and now I think they are plain wrong.

So, no.


More information about the xorg mailing list