Home
last modified time | relevance | path

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

/bootable/libbootloader/gbl/third_party/libzbi/src/
Dlib.rs57 type ZbiResult<T> = Result<T, ZbiError>;
138 let (hdr, payload) = Ref::<B, ZbiHeader>::new_from_prefix(buffer).ok_or(ZbiError::Error)?; in parse()
141 usize::try_from(hdr.length).map_err(|_| ZbiError::PlatformBadLength)?; in parse()
143 return Err(ZbiError::TooBig); in parse()
170 Err(ZbiError::BadMagic) in is_valid()
172 Err(ZbiError::BadVersion) in is_valid()
176 Err(ZbiError::BadCrc) in is_valid()
226 return Err(ZbiError::TooBig); in new()
233 u32::try_from(payload_len).map_err(|_| ZbiError::PlatformBadLength)?; in new()
236 Ref::<B, ZbiHeader>::new_from_prefix(buffer).ok_or(ZbiError::Error)?; in new()
[all …]
/bootable/libbootloader/gbl/efi/src/
Derror.rs26 use zbi::ZbiError;
62 ZbiError(ZbiError),