From 3048e4fa97c45ff67a9d0246518501f4a5de7ef4 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Fri, 1 Aug 2025 14:54:26 -0400 Subject: [PATCH] Add optional register_fixed_buffer method to IO trait --- core/io/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/io/mod.rs b/core/io/mod.rs index 8560216e8..a822cf832 100644 --- a/core/io/mod.rs +++ b/core/io/mod.rs @@ -2,6 +2,7 @@ use crate::Result; use bitflags::bitflags; use cfg_block::cfg_block; use std::fmt; +use std::ptr::NonNull; use std::sync::Arc; use std::{ cell::{Cell, Ref, RefCell, RefMut}, @@ -89,6 +90,12 @@ pub trait IO: Clock + Send + Sync { fn generate_random_number(&self) -> i64; fn get_memory_io(&self) -> Arc; + + fn register_fixed_buffer(&self, _ptr: NonNull, _len: usize) -> Result<()> { + Err(crate::LimboError::InternalError( + "unsupported operation".to_string(), + )) + } } pub type Complete = dyn Fn(Arc>, i32);