Struct imperator_save::Melter [−][src]
pub struct Melter { /* fields omitted */ }
Convert a binary gamestate to plaintext
Accepted inputs:
- a save file
- already extracted binary data
Implementations
impl Melter
[src]
impl Melter
[src]pub fn new() -> Self
[src]
Create a customized version to melt binary data
pub fn with_extraction(self, extraction: Extraction) -> Self
[src]
Set the memory allocation extraction behavior for when a zip is encountered
pub fn with_on_failed_resolve(self, strategy: FailedResolveStrategy) -> Self
[src]
Set the behavior for when an unresolved binary token is encountered
pub fn melt(
&self,
data: &[u8]
) -> Result<(Vec<u8>, HashSet<u16>), ImperatorError>
[src]
&self,
data: &[u8]
) -> Result<(Vec<u8>, HashSet<u16>), ImperatorError>
Given one of the accepted inputs, this will return the save id line (if present in the input) with the gamestate data decoded from binary to plain text.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Melter
impl RefUnwindSafe for Melter
impl UnwindSafe for Melter
impl UnwindSafe for Melter