class
Cradare2::DSL::Comments
- Cradare2::DSL::Comments
- Reference
- Object
Overview
Fluent DSL for setting, inspecting, and managing radare2 code comments safely.
Defined in:
cradare2/dsl/comments.crConstructors
Instance Method Summary
-
#all : Hash(UInt64, String)
Returns all comments registered in the session as a mapping of Address => Comment text (
Cj). -
#batch_set(comments : Hash(Address, String)) : self
Batches setting multiple comments in a single pipe transaction.
-
#clear(address : Address) : self
Removes the comment at the specified address (
CC- @ <addr>). -
#clear_all : self
Removes all comments throughout the binary session (
CC-*). -
#get(address : Address) : String | Nil
Retrieves the comment at the specified address, or nil if no comment is set (`CC.
-
#list : Array(Tuple(UInt64, String))
Returns all comments as an array of (address, comment) tuples.
-
#set(address : Address, text : String) : self
Sets a comment at the specified address using Base64 encoding (
CCu <base64> @ <addr>).
Constructor Detail
Instance Method Detail
Returns all comments registered in the session as a mapping of Address => Comment text (Cj).
Batches setting multiple comments in a single pipe transaction.
Removes the comment at the specified address (CC- @ <addr>).
Retrieves the comment at the specified address, or nil if no comment is set (CC. @ <addr>).
Returns all comments as an array of (address, comment) tuples.
Sets a comment at the specified address using Base64 encoding (CCu <base64> @ <addr>).
Completely prevents string escaping and shell injection issues with quotes or newlines.