NetPermissions::HasFlag

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

NameDescription
flagsThe flags to inspect.
fThe flag or flag combination to test for.