revm_interpreter/interpreter/return_data.rs
use crate::interpreter::ReturnData;
use primitives::Bytes;
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Clone, Debug, Default)]
pub struct ReturnDataImpl(Bytes);
impl ReturnData for ReturnDataImpl {
fn buffer(&self) -> &[u8] {
self.0.as_ref()
}
fn buffer_mut(&mut self) -> &mut Bytes {
&mut self.0
}
}