capstone.utils.tagged_union

A tagged union on top of std.variant.Algebraic

The C API implements operand values as regular unions, enabling (mis)interpretation of the stored value in any of the encompassed types. This implementation provides a safer union that throws when interpreting the union's value in a different type than it was stored as.

Members

Classes

TaggedUnionException
class TaggedUnionException

Thrown on misuse of TaggedUnion

Templates

TaggedUnion
template TaggedUnion(Specs...)

Constructs a TaggedUnion with the specifiedn types and identifiers

Meta