Update phrasing of 'Bin' and 'format' to 'object'

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-01-28 18:15:07 -05:00
parent 25f89bbc73
commit 785c0c6092
2 changed files with 9 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ use std::{
pub const MAGIC: u64 = 0xDEAD_BEA7_BA5E_BA11;
#[derive(Debug)]
pub struct Bin {
pub struct Object {
header: Header,
sections: Vec<Box<dyn Section>>,
}
@@ -108,15 +108,15 @@ impl Section for MetaSection {
}
#[derive(Debug, Clone)]
pub struct BinParser {
pub struct ObjectParser {
bytes: Cursor<Vec<u8>>,
}
impl BinParser {
pub fn parse(&mut self) -> Result<Bin> {
impl ObjectParser {
pub fn parse(&mut self) -> Result<Object> {
let header = self.parse_header()?;
let sections = self.parse_sections()?;
Ok(Bin { header, sections })
Ok(Object { header, sections })
}
fn parse_header(&mut self) -> Result<Header> {