Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
minidump.Enum Class Reference
Inheritance diagram for minidump.Enum:

Public Member Functions

def __init__ (self, type, name2value)
 
def from_raw (self, v)
 
def to_raw (self, v)
 

Public Attributes

 name2value
 
 value2name
 
 type
 

Detailed Description

Definition at line 13 of file minidump.py.

Constructor & Destructor Documentation

◆ __init__()

def minidump.Enum.__init__ (   self,
  type,
  name2value 
)

Definition at line 15 of file minidump.py.

15 def __init__(self, type, name2value):
16 self.name2value = name2value
17 self.value2name = {v: k for k, v in name2value.items()}
18 self.type = type
19

Member Function Documentation

◆ from_raw()

def minidump.Enum.from_raw (   self,
  v 
)

Definition at line 20 of file minidump.py.

20 def from_raw(self, v):
21 if v not in self.value2name:
22 return 'Unknown(' + str(v) + ')'
23 return self.value2name[v]
24

◆ to_raw()

def minidump.Enum.to_raw (   self,
  v 
)

Definition at line 25 of file minidump.py.

25 def to_raw(self, v):
26 return self.name2value[v]
27
28

Member Data Documentation

◆ name2value

minidump.Enum.name2value

Definition at line 16 of file minidump.py.

◆ type

minidump.Enum.type

Definition at line 18 of file minidump.py.

◆ value2name

minidump.Enum.value2name

Definition at line 17 of file minidump.py.


The documentation for this class was generated from the following file: