MCPcopy Create free account
hub / github.com/elastic/devfiler / from_raw

Method from_raw

src/storage/tables/stackframes.rs:33–38  ·  view source on GitHub ↗
(data: Self::B)

Source from the content-addressed store, hash-verified

31 type B = [u8; 16 + 8];
32
33 fn from_raw(data: Self::B) -> Self {
34 Self {
35 file_id: FileId::from_raw(data[0..16].try_into().unwrap()),
36 addr_or_line: u64::from_be_bytes(data[16..24].try_into().unwrap()),
37 }
38 }
39
40 fn into_raw(self) -> Self::B {
41 let mut buf = Self::B::default();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected