pub fn new(pointer_size: u8, module: &Module) -> Self {
        Self {
            pointer_size,
            num_signature_ids: module.signatures.len() as u64,
            num_imported_functions: module.imported_funcs.len() as u64,
            num_imported_tables: module.imported_tables.len() as u64,
            num_imported_memories: module.imported_memories.len() as u64,
            num_imported_globals: module.imported_globals.len() as u64,
            num_defined_tables: module.table_plans.len() as u64,
            num_defined_memories: module.memory_plans.len() as u64,
            num_defined_globals: module.globals.len() as u64,
        }
    }
/// Return a new `VMOffsets` instance, for a given pointer size.
Return a new `VMOffsets` instance, for a given pointer size.
Return a new ` VMOffsets ` instance for a given pointer size .
pub fn new(pointer_size: u8, module: &Module) -> Self {
        Self {
            pointer_size,
            num_signature_ids: module.signatures.len() as u64,
            num_imported_functions: module.imported_funcs.len() as u64,
            num_imported_tables: module.imported_tables.len() as u64,
            num_imported_memories: module.imported_memories.len() as u64,
            num_imported_globals: module.imported_globals.len() as u64,
            num_defined_tables: module.table_plans.len() as u64,
            num_defined_memories: module.memory_plans.len() as u64,
            num_defined_globals: module.globals.len() as u64,
        }
    }
pub fn new ( pointer_size : u8 , module : & Module ) -> Self { Self { pointer_size , num_signature_ids : module . signatures . len ( ) as u64 , num_imported_functions : module . imported_funcs . len ( ) as u64 , num_imported_tables : module . imported_tables . len ( ) as u64 , num_imported_memories : module . imported_memories . len ( ) as u64 , num_imported_globals : module . imported_globals . len ( ) as u64 , num_defined_tables : module . table_plans . len ( ) as u64 , num_defined_memories : module . memory_plans . len ( ) as u64 , num_defined_globals : module . globals . len ( ) as u64 , } }
Return a new `VMOffsets` instance, for a given pointer size.
Return a new ` VMOffsets ` instance for a given pointer size .
pointer_size
u8
module
&Module