pub fn version<R: Read + Seek>(mut buffer: &mut R, kind: BinaryKind) -> Option<String> {
    match kind {
        BinaryKind::LinuxKernel => LinuxKernel::from_reader(&mut buffer).get_version(),
        BinaryKind::UBoot => UBoot::from_reader(&mut buffer).get_version(),
    }
}
/// Get the version for a specific binary.
Get the version for a specific binary.
Get the version for a specific binary .
pub fn version<R: Read + Seek>(mut buffer: &mut R, kind: BinaryKind) -> Option<String> {
    match kind {
        BinaryKind::LinuxKernel => LinuxKernel::from_reader(&mut buffer).get_version(),
        BinaryKind::UBoot => UBoot::from_reader(&mut buffer).get_version(),
    }
}
pub fn version < R : Read + Seek > ( mut buffer : & mut R , kind : BinaryKind ) -> Option < String > { match kind { BinaryKind :: LinuxKernel => LinuxKernel :: from_reader ( & mut buffer ) . get_version ( ) , BinaryKind :: UBoot => UBoot :: from_reader ( & mut buffer ) . get_version ( ) , } }
Get the version for a specific binary.
Get the version for a specific binary .
buffer
&mut R
kind
BinaryKind
buffer
&mut R
kind
BinaryKind