Skip to content

Commit

Permalink
Expose Class and Endian in the public interface.
Browse files Browse the repository at this point in the history
These types are exposed in the FileHeader type and so they should also be accessible
for users to inspect.
  • Loading branch information
cole14 committed Nov 5, 2022
1 parent aa41e55 commit 165e17d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ mod parse;
pub use file::File;
#[cfg(feature = "std")]
pub use parse::CachedReadBytes;
pub use parse::Class;
pub use parse::Endian;
pub use parse::ParseError;
2 changes: 1 addition & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl core::fmt::Display for Endian {
}
}

/// Represents the ELF file data format (little-endian vs big-endian)
/// Represents the ELF file word size (32-bit vs 64-bit)
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Class {
ELF32,
Expand Down

0 comments on commit 165e17d

Please sign in to comment.