Rizin
unix-like reverse engineering framework and cli tools
rz_code_annotation_t Struct Reference

Annotations for the decompiled code are represented using this structure. More...

#include <rz_annotated_code.h>

Public Attributes

size_t start
 
size_t end
 
RzCodeAnnotationType type
 
union {
   struct {
      ut64   offset
 
   }   offset
 
   struct {
      RSyntaxHighlightType   type
 
   }   syntax_highlight
 
   struct {
      char *   name
 
      ut64   offset
 
   }   reference
 
   struct {
      char *   name
 
   }   variable
 
}; 
 

Detailed Description

Annotations for the decompiled code are represented using this structure.

Definition at line 39 of file rz_annotated_code.h.

Member Data Documentation

◆ 

union { ... }

◆ end

size_t rz_code_annotation_t::end

◆ name

◆ offset [1/2]

◆  [2/2]

struct { ... } rz_code_annotation_t::offset

If the annotation is of type RZ_CODE_ANNOTATION_TYPE_OFFSET, offset should be stored in the struct named offset in this union.

◆ 

struct { ... } rz_code_annotation_t::reference

Information in annotations of type RZ_CODE_ANNOTATION_TYPE_FUNCTION_NAME, RZ_CODE_ANNOTATION_TYPE_GLOBAL_VARIABLE, and RZ_CODE_ANNOTATION_TYPE_CONSTANT_VARIABLE will be stored in the struct named reference in this union.

Referenced by rz_annotation_free(), and rz_core_annotated_code_print_json().

◆ start

size_t rz_code_annotation_t::start

◆ 

struct { ... } rz_code_annotation_t::syntax_highlight

If the annotation is of type RZ_CODE_ANNOTATION_TYPE_SYNTAX_HIGHLIGHT, type of the syntax highlight will be stored in the struct named syntax_highlight in this union.

Referenced by rz_core_annotated_code_print(), and rz_core_annotated_code_print_json().

◆ type [1/2]

◆ type [2/2]

◆ 

struct { ... } rz_code_annotation_t::variable

Information in annotations of type RZ_CODE_ANNOTATION_TYPE_LOCAL_VARIABLE and RZ_CODE_ANNOTATION_TYPE_FUNCTION_PARAMETER will be stored in the struct named variable in this union.

Referenced by rz_annotation_free(), and rz_core_annotated_code_print_json().


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