def client.window.plus.sign

bend-kit-http2@0.4.0.0 · http2.bend:550

import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base

550def client.window.plus.sign(positive: Bool, +w: U32, +value: U32) -> Maybe<&1, U32>:
551  match positive:
552    case True{}:
553      client.window.add(U32.is_le(value, (2147483647 - w : U32)), w, value)
554    case False{}:
555      Some{(w + value : U32)}

Uses (7)

Used by (1)