def padding

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

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

83# A PADDED payload must contain the pad-length octet and all the padding.
84def padding(+flags: U32, +len: U32, +fixed: U32, +pad: U32) -> Bool:
85  Bool.and(has(flags, 8), Bool.or(U32.is_le(len, fixed), U32.is_gt(pad, (len - fixed - 1 : U32))))

Uses (8)

Used by (1)