10 lines
228 B
Rust
10 lines
228 B
Rust
use core::slice;
|
|
|
|
pub mod mem_serve;
|
|
pub mod service_definition_service;
|
|
|
|
#[inline(always)]
|
|
pub fn block_read<'a>(mem_addr: u64, length: usize) -> &'a [u8] {
|
|
unsafe { slice::from_raw_parts(mem_addr as *const u8, length) }
|
|
}
|