Checks if a specific flag is set in the given flags value.
The numeric value representing the flags.
The flag to check, either as a string or a numeric value.
True if the flag is set, false otherwise.
Reads the flags set in the given flags value and returns an array of flag names that are set.
The numeric value representing the flags.
An array of flag names that are set
Sets a specific flag in the given flags value and returns the updated flags value.
The numeric value representing the flags.
The flag to set, either as a string or a numeric value.
The updated flags value with the specified flag set.
Clears a specific flag in the given flags value and returns the updated flags value.
The numeric value representing the flags.
The flag to clear, either as a string or a numeric value.
The updated flags value with the specified flag cleared.
Interface for handling flag object operations.