rkyv (archive) is a zero-copy deserialization framework for Rust.
You may be looking for:
```rust use rkyv::{Aligned, Archive, ArchiveBuffer, Archived, WriteExt};
struct Test {
int: u8,
string: String,
option: Option
fn main() {
let mut writer = ArchiveBuffer::new(Aligned([0u8; 256]));
let value = Test {
int: 42,
string: "hello world".tostring(),
option: Some(vec![1, 2, 3, 4]),
};
let pos = writer.archive(&value)
.expect("failed to archive test");
let buf = writer.intoinner();
let archived = unsafe { &*buf.asref().asptr().add(pos).cast::