- int64_zigzag_when(?Original, ?Encoded) is det[private]
- Convert between a signed integer value and its zigzag encoding,
used for the protobuf
sint64types. This is a low-level predicate; normally, you should use template_message/2 and the appropriate template term.
SWI-Prolog allows integer values greater than 64 bits, so a range check is done.
This predicate delays until either
Encodedis sufficiently instantiated.
There is also a non-delayed int64_zigzag/2