aboutsummaryrefslogtreecommitdiff
path: root/vendor/object/src/read/coff/mod.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/object/src/read/coff/mod.rs
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/object/src/read/coff/mod.rs')
-rw-r--r--vendor/object/src/read/coff/mod.rs66
1 files changed, 0 insertions, 66 deletions
diff --git a/vendor/object/src/read/coff/mod.rs b/vendor/object/src/read/coff/mod.rs
deleted file mode 100644
index de397da..0000000
--- a/vendor/object/src/read/coff/mod.rs
+++ /dev/null
@@ -1,66 +0,0 @@
-//! Support for reading Windows COFF files.
-//!
-//! Traits are used to abstract over the difference between COFF object files
-//! and COFF bigobj files. The primary trait for this is [`CoffHeader`].
-//!
-//! ## High level API
-//!
-//! [`CoffFile`] implements the [`Object`](crate::read::Object) trait for
-//! COFF files. [`CoffFile`] is parameterised by [`CoffHeader`].
-//! The default parameter allows reading regular COFF object files,
-//! while the type alias [`CoffBigFile`] allows reading COFF bigobj files.
-//!
-//! [`ImportFile`] allows reading COFF short imports that are used in import
-//! libraries. Currently these are not integrated with the unified read API.
-//!
-//! ## Low level API
-//!
-//! The [`CoffHeader`] trait can be directly used to parse both COFF
-//! object files (which start with [`pe::ImageFileHeader`]) and COFF bigobj
-//! files (which start with [`pe::AnonObjectHeaderBigobj`]).
-//!
-//! ### Example for low level API
-//! ```no_run
-//! use object::pe;
-//! use object::read::coff::{CoffHeader, ImageSymbol as _};
-//! use std::error::Error;
-//! use std::fs;
-//!
-//! /// Reads a file and displays the name of each section and symbol.
-//! fn main() -> Result<(), Box<dyn Error>> {
-//! # #[cfg(feature = "std")] {
-//! let data = fs::read("path/to/binary")?;
-//! let mut offset = 0;
-//! let header = pe::ImageFileHeader::parse(&*data, &mut offset)?;
-//! let sections = header.sections(&*data, offset)?;
-//! let symbols = header.symbols(&*data)?;
-//! for section in sections.iter() {
-//! println!("{}", String::from_utf8_lossy(section.name(symbols.strings())?));
-//! }
-//! for (_index, symbol) in symbols.iter() {
-//! println!("{}", String::from_utf8_lossy(symbol.name(symbols.strings())?));
-//! }
-//! # }
-//! Ok(())
-//! }
-//! ```
-#[cfg(doc)]
-use crate::pe;
-
-mod file;
-pub use file::*;
-
-mod section;
-pub use section::*;
-
-mod symbol;
-pub use symbol::*;
-
-mod relocation;
-pub use relocation::*;
-
-mod comdat;
-pub use comdat::*;
-
-mod import;
-pub use import::*;