Comments (2)
Thanks for the quick response!
I was just looking into it and noticed the big move to libmem-sys (and that the properties are public on there).
I've switched over to libmem-sys for the time being, rather than making a fork - since the changes on my end were fairly minimal :)
Thanks!
from libmem.
The fields in the structs are not public because the Rust wrapper needs to do convertions between C strings and Rust strings, for example. I probably just forgot to do it at the time.
The newer bindings will separate further the C API from the Rust API, where there will be a crate called libmem-sys
(raw C bindings) and just libmem
which will be more rusty
Those bindings are not complete yet, but when 5.0.0 releases, you should expect to be able to access them normally.
For the time being, best option might be to do functions like this in a fork:
impl lm_inst_t {
pub fn get_mnemonic() -> String {
string_from_cstring(&self.mnemonic)
}
pub fn get_op_str() -> String {
string_from_cstring(&self.op_str)
}
}
from libmem.
Related Issues (20)
- Fix `liblibmem.so` issue on Unix-likes HOT 2
- `lm_time_t` is private HOT 1
- Small doc correction for Rust LM_FindSymbolAddress HOT 1
- Add basic debug logging HOT 1
- Add helper functions for Python to avoid manual unpacking all the time
- Deprecate `LM_` suffix in Python bindings HOT 2
- Figure out a way to allow more assembler/disassembler modes HOT 3
- Reconsider uses of `process->bits` HOT 1
- Place 32 bit jump in x64 if possible HOT 1
- Avoid unnecessary use of assembler/disassembler HOT 1
- Regex process/module/etc search
- Protect VMT memory on assignment as RWX HOT 1
- Rust fails to build on Windows. HOT 1
- Bug: `write_memory_ex` was not work as expected in Rust. HOT 1
- Consider allow specifying memory location for allocation (like mmap)
- Consider allowing to assemble in-place
- rust fails to compile on linux HOT 2
- Ptrace issues
- Consider reintroducing remote call API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmem.