Skip to content

Commit

Permalink
Updated PluginDescriptor struct to work on more architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Apr 3, 2024
1 parent 2b48500 commit 919634c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions memflow/src/plugins/plugin_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MEMFLOW_EXPORT_PREFIX: &str = "MEMFLOW_";
#[repr(C, align(4))]
struct PluginDescriptor32 {
pub plugin_version: i32,
pub accept_input: bool,
pub accept_input: u8, // bool
pub input_layout: u32, // &'static TypeLayout
pub output_layout: u32, // &'static TypeLayout,
pub name: u32, // CSliceRef<'static, u8>,
Expand All @@ -47,10 +47,10 @@ struct PluginDescriptor32 {
const _: [(); std::mem::size_of::<PluginDescriptor32>()] = [(); 0x34];
unsafe impl Pod for PluginDescriptor32 {}

#[repr(C)]
#[repr(C, align(8))]
struct PluginDescriptor64 {
pub plugin_version: i32,
pub accept_input: bool,
pub accept_input: u8, // bool
pub input_layout: u64, // &'static TypeLayout
pub output_layout: u64, // &'static TypeLayout,
pub name: u64, // CSliceRef<'static, u8>,
Expand Down

0 comments on commit 919634c

Please sign in to comment.