- METHODS AND ARGUMENTS
- GIT REPOSITORY
- SEE ALSO
- COPYRIGHT AND LICENSE
Proc::Memory - Peek/Poke into processes' address spaces
use Proc::Memory; my $mem = Proc::Memory->new(pid => $$); my $byte = $mem->peek(0x1000); my $u32 = $mem->read(0x1000, 4); $mem->poke(0x1000, 'L') = 12;
PEEK/POKE are a BASIC programming language extension for reading/writing memory at a specified address. This module brings similiar capability to Perl.
Eventually, Memory searching capability will also be added.
Constructs a new Proc::Memory instance.
- peek(addr [, 'pack-string'])
Peeks at the given memory address.
'C'(A single byte)
- poke(addr [, 'pack-string']) = $value # or = ($a, $b)
Pokes a given memory address. If no pack-string is given, the rvalue is written as is
- read(addr, size)
Reads size bytes from given memory address.
- write(addr, buf [, count])
- tie(addr, 'pack-string')
Returns a tied variable which can be used like any other variable. To be implemented
To be implemented when libvas provides it
Copyright (C) 2016 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.