Skip to content

Commit

Permalink
make write_data usable
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-guene committed Dec 13, 2014
1 parent 53be2c7 commit 5c73f01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension/python/proot.i
Expand Up @@ -67,9 +67,11 @@ extern word_t peek_reg(const Tracee *tracee, RegVersion version, Reg reg);
extern void poke_reg(Tracee *tracee, Reg reg, word_t value);

/* tracee/mem.h */
extern int write_data(const Tracee *tracee, word_t dest_tracee, const void *src_tracer, word_t size);
/* make read_data usable for python */
%include <pybuffer.i>
%pybuffer_mutable_binary(const void *src_tracer, word_t size2);
extern int write_data(const Tracee *tracee, word_t dest_tracee, const void *src_tracer, word_t size2);

/* make read_data usable for python */
%rename(read_data) read_data_for_python;
%pybuffer_mutable_binary(void *dest_tracer, word_t size2);
%inline %{
Expand Down

0 comments on commit 5c73f01

Please sign in to comment.