valueOf

Creates a SectionFlags from a string

The input string might be in one of the following formats:

  • The name of the flag value.

  • The hexadecimal representation of the flag value, prefixed with "0x".

Return

the flag value

Parameters

name

the name of the flag value, or the text representation

Throws

neither a known flag value nor a valid hexadecimal number