Skip to content
Snippets Groups Projects
Verified Commit 45acfb36 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

docs: adds explicit comment on BESS

It's used because of static size nature of it.
parent 893e1f92
No related branches found
No related tags found
No related merge requests found
Pipeline #4778 passed
......@@ -440,6 +440,9 @@ pub extern "C" fn retro_get_memory_data(_memory_id: u32) -> *mut c_void {
pub extern "C" fn retro_serialize_size() -> usize {
debugln!("retro_serialize_size()");
let instance = unsafe { EMULATOR.as_mut().unwrap() };
// uses BESS file format for its static nature, meaning that the final
// size of the serialized state is known in advance
StateManager::save(instance, Some(SaveStateFormat::Bess))
.unwrap()
.len()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment