capnproto-java-rpc/runtime
Jonah Beckford 27ea6745e5
Support signed offsets
Both Structs and Lists support two's complement "Signed" offsets:

> B (30 bits) = Offset, in words, from the end
> of the pointer to the start of the struct's
> data section.  Signed.

> B (30 bits) = Offset, in words, from the end
> of the pointer to the start of the first
> element of the list.  Signed.

The prior code only supported positive offsets
because it used the Java >>> operator, which
is an unsigned shift operator. The Java >>
operator is the signed shift operator.

Audited the remaining uses of the shift
operator; they were correct and they are
documented as such.

Positive offsets are only guaranteed in a Canonical message.
2024-10-07 12:38:05 +03:00
..
src Support signed offsets 2024-10-07 12:38:05 +03:00
pom.xml bump version numbers 2024-10-07 12:37:24 +03:00