Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Add gpt parser (WIP cause of the shitty network here)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkles-Laurel authored Sep 26, 2023
1 parent 843c16b commit 491ab05
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/read_gpt.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use x86_64::instructions::Port;

/// Represents a Globally Unique Identifier (GUID)
#[repr(transparent)]
struct GUID([u8; 16]);

impl GUID {
pub const fn from_str(const s: &str) -> Self {
todo!()
// i am actually tired af i don't want to faint again :(
}
}

/// Represents a GUID Partition Table entry.
#[derive(Debug)]
struct Partition {
part_type: GUID,
part_id: GUID,
prot_mbr: ProtectiveMBRHeader,
// TODO: Actually implement this piece of penguin,
// I actually have implemented this on my
// notebook, but I didn't have my notebook
// with me at the time of writing this,
// I hope I don't faint when I return home.
}

0 comments on commit 491ab05

Please sign in to comment.