Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 678 Bytes

README.md

File metadata and controls

46 lines (32 loc) · 678 Bytes

radare2 bindings for V

CI

This repository contains the initial bindings of r2 for the V programming language.

Installation

$ v install radare.r2
$ v
>>> import radare.r2
>>> core := r2.new()
>>> print(core.cmd('?E Hello World'))
>>> core.free()

Example

module main

import radare.r2

fn main() {
  c := r2.new()
  print(c.cmd('?E Hello'))
  c.free()
}

or spawning:

module main

import radare.r2

fn main() {
  mut c := r2.spawn('/bin/ls', '') or { panic(err) }
  print(c.cmd('?E Hello'))
  c.free()
}