Test whether a set of flags contains a given flag (or flag combination).

Synopsis

Declared in <net_permissions.h>

static
bool
HasFlag(
    NetPermissionFlags flags,
    NetPermissionFlags f);

Return Value

true if every bit of f is set in flags.

Parameters

Name

Description

flags

The flags to inspect.

f

The flag or flag combination to test for.

Created with MrDocs