hasFlag
hasFlag(
flags,flag):boolean
Defined in: packages/protocol/src/wire-format.ts:216
Check if a flag is set.
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if (hasFlag(header.flags, Flags.IS_STREAM)) { // handle stream chunk}