Skip to content

hasFlag

hasFlag(flags, flag): boolean

Defined in: packages/protocol/src/wire-format.ts:216

Check if a flag is set.

number

number

boolean

if (hasFlag(header.flags, Flags.IS_STREAM)) {
// handle stream chunk
}