IdaJS
    Preparing search index...

    Interface FlagsHandler

    Interface for handling flag object operations.

    interface FlagsHandler {
        isSet(flagsValue: number, flag: string | number): boolean;
        read(flagsValue: number): string[];
        set(flagsValue: number, flag: string | number): number;
        unset(flagsValue: number, flag: string | number): number;
    }
    Index

    Methods

    • Checks if a specific flag is set in the given flags value.

      Parameters

      • flagsValue: number

        The numeric value representing the flags.

      • flag: string | number

        The flag to check, either as a string or a numeric value.

      Returns boolean

      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.

      Parameters

      • flagsValue: number

        The numeric value representing the flags.

      Returns string[]

      An array of flag names that are set

    • Sets a specific flag in the given flags value and returns the updated flags value.

      Parameters

      • flagsValue: number

        The numeric value representing the flags.

      • flag: string | number

        The flag to set, either as a string or a numeric value.

      Returns number

      The updated flags value with the specified flag set.

    • Clears a specific flag in the given flags value and returns the updated flags value.

      Parameters

      • flagsValue: number

        The numeric value representing the flags.

      • flag: string | number

        The flag to clear, either as a string or a numeric value.

      Returns number

      The updated flags value with the specified flag cleared.