angr.go.sim_type¶
Go-flavored SimTypes.
Every class carries an optional go_name (the declared name of a named type such as time.Duration), which is
what gets rendered; the underlying representation decides size, layout and how values are passed.
- class angr.go.sim_type.GoSimType¶
Bases:
SimType- go_repr()¶
The canonical Go spelling of this type (its name when it is a named type).
- Return type:
- class angr.go.sim_type.GoSimTypeInt¶
Bases:
GoSimType,SimTypeIntAn integer of explicit width.
go_namedistinguishesint/uintptr/runefromint64/uint64/int32.- property alignment¶
The alignment of the type in bytes.
- class angr.go.sim_type.GoSimTypeBool¶
Bases:
GoSimTypeInt
- class angr.go.sim_type.GoSimTypeFloat¶
Bases:
GoSimType,SimTypeFloat- property sort¶
- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypePointer¶
Bases:
GoSimType,SimTypePointer- property size¶
The size of the type in bits, or None if no size is computable.
- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeUnsafePointer¶
Bases:
GoSimTypePointer- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeArray¶
Bases:
GoSimType,SimTypeArrayA fixed-size Go array
[N]T.- copy()¶
- Return type:
- class angr.go.sim_type.GoSimStruct¶
-
A Go struct.
go_nameis the qualified type name (main.point); anonymous structs have none. Field offsets and the total size may be pinned (offsets/go_size) when they come from a trusted source such as DWARF, so the layout never depends on angr’s C-style alignment rules.- property size¶
The size of the type in bits, or None if no size is computable.
- property alignment¶
The alignment of the type in bytes.
- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeString¶
Bases:
GoSimStruct
- class angr.go.sim_type.GoSimTypeSlice¶
Bases:
GoSimStruct
- class angr.go.sim_type.GoSimTypeInterface¶
Bases:
GoSimStructAn interface value: an itab (or type) pointer and a data pointer.
methodsis a list of(name, func_type); the empty method set isany.
- class angr.go.sim_type.GoSimTypeTuple¶
Bases:
GoSimStructThe result list of a function with more than one result, laid out like a struct.
- class angr.go.sim_type.GoSimTypeMap¶
Bases:
GoSimTypePointer- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeChan¶
Bases:
GoSimTypePointer- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeFunction¶
Bases:
GoSimType,SimTypeFunctionA function signature: parameters (named) and results. More than one result is a
GoSimTypeTuplereturn type so calling-convention code sees one struct-shaped value.- copy()¶
- Return type:
- class angr.go.sim_type.GoSimTypeFunc¶
Bases:
GoSimTypePointerA func value: a pointer to a closure whose first word is the code pointer.
- copy()¶
- Return type:
- angr.go.sim_type.go_type_repr(ty)¶
Spell any SimType the Go way; non-Go SimTypes get a best-effort mapping.
- angr.go.sim_type.go_int(arch, size=None, signed=True, go_name=None)¶
- Return type:
- Parameters: