Update phrasing of 'Bin' and 'format' to 'object'
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user