Home
last modified time | relevance | path

Searched refs:ZbiItem (Results 1 – 1 of 1) sorted by relevance

/bootable/libbootloader/gbl/third_party/libzbi/src/
Dlib.rs94 pub struct ZbiItem<B: ByteSlice> { struct
101 impl<B: ByteSlice, C: ByteSlice> PartialEq<ZbiItem<C>> for ZbiItem<B> { implementation
102 fn eq(&self, other: &ZbiItem<C>) -> bool { in eq()
108 impl<B: ByteSlice + PartialEq> ZbiItem<B> { impl
135 pub fn parse(buffer: B) -> ZbiResult<(ZbiItem<B>, B)> { in parse()
147 let item = ZbiItem { header: hdr, payload: item_payload }; in parse()
183 impl<B: ByteSliceMut + PartialEq> ZbiItem<B> { impl
222 ) -> ZbiResult<(ZbiItem<B>, B)> { in new()
250 Ok((ZbiItem { header, payload }, tail)) in new()
330 Some(ZbiItem { header, payload: _ }) if header.type_ == ZBI_ARCH_KERNEL_TYPE as u32 => { in is_bootable()
[all …]