Type alias OverflowBehavior

OverflowBehavior: "throw" | "truncate" | "clamp"

How to handle integer overflow.

  • throw: Throws an error if value overflows (or underflows).
  • truncate: Truncates or extends bit-pattern with sign extension (C++11 behavior).
  • clamp: Clamps the value within the supported range.