Lines Matching refs:ZbiItem
94 pub struct ZbiItem<B: ByteSlice> { struct
101 impl<B: ByteSlice, C: ByteSlice> PartialEq<ZbiItem<C>> for ZbiItem<B> { argument
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()
402 ZbiItem::new(buffer, ZbiType::Container, ZBI_CONTAINER_MAGIC, ZbiFlags::default(), 0)?; in new()
566 ZbiItem::new(&mut self.buffer[length..], type_, extra, flags, payload_length)?; in create_entry()
661 type Item = ZbiItem<B>;
677 match ZbiItem::<B>::parse(take(&mut self.buffer)) { in next()
1318 let (item, _) = ZbiItem::new( in zbi_test_item_new()
1346 ZbiItem::new( in zbi_test_item_new_too_small()
1362 ZbiItem::new( in zbi_test_item_new_not_aligned()
1381 let (zbi_item, _tail) = ZbiItem::parse(buffer).unwrap(); in zbi_test_item_parse()
1394 let (mut zbi_item, _tail) = ZbiItem::parse(&mut buffer_build[..]).unwrap(); in zbi_test_item_edit()
1415 let (item, _) = ZbiItem::parse(&buffer.0[..]).unwrap(); in zbi_test_container_new()