class
Cradare2::DSL::Flags
- Cradare2::DSL::Flags
- Reference
- Object
Overview
Fluent DSL for managing radare2 flags (symbols, labels, markers).
Defined in:
cradare2/dsl/flags.crConstructors
Instance Method Summary
-
#all : Array(Model::Flag)
Returns all defined flags in the session (
fj). -
#batch_set(flags : Hash(String, Address)) : self
Batches the creation of multiple flags in a single command pipeline (
f name @ addr; ...). -
#clear_all : self
Clears all flags in the session (
f-*). -
#clear_space : self
Clears active flag space selection to default (
fs *). -
#current_space : String
Returns the name of the currently active flag space (
fs.). -
#delete(name : String) : self
Deletes a flag by name (
f- <name>). -
#get(name : String) : UInt64 | Nil
Retrieves the virtual address for a named flag, or nil if not found (
f? <name>/fj). -
#in_space(name : String, &block : Flags -> U) : U forall U
Executes the block within the designated flag space, safely restoring the previous space.
-
#matching(pattern : String | Regex) : Array(Model::Flag)
Filters flags matching a string query or regular expression.
-
#rename(old_name : String, new_name : String) : self
Renames an existing flag (
fr <old> <new>). -
#set(name : String, address : Address, size : UInt64 = 0_u64) : self
Sets a flag at the given address with an optional size in bytes (
f <name> <size> @ <address>). -
#space(name : String) : self
Selects or creates a flag space (
fs <name>). -
#space(name : String, &block : Flags -> U) : U forall U
Selects a flag space for the duration of the block, restoring the previous space afterwards.
-
#spaces : Array(String)
Returns all defined flag spaces in the session (
fs).
Constructor Detail
Instance Method Detail
Batches the creation of multiple flags in a single command pipeline (f name @ addr; ...).
Retrieves the virtual address for a named flag, or nil if not found (f? <name> / fj).
Executes the block within the designated flag space, safely restoring the previous space.
Filters flags matching a string query or regular expression.
Renames an existing flag (fr <old> <new>).
Sets a flag at the given address with an optional size in bytes (f <name> <size> @ <address>).
Selects a flag space for the duration of the block, restoring the previous space afterwards.