Struct pmd_message::MessageBin [−][src]
pub struct MessageBin { /* fields omitted */ }
Expand description
A structure representing a translation (message) file in 3ds pokemon mystery dungeon games.
Each text have an associated (32bit, probably crc32) hash associated with them as a key.
Implementations
Return all the hash, the unk value and message content stored in the file
Return the message content with the given hash if it exist.
If the hash is already present, update the message content and unknown value, otherwise, add a new message at the end of the messages list. Return the old string if it exist.
pub fn load_file<T: Read + Seek>(
file: &mut T,
code_to_text: Option<&CodeToText<'_>>
) -> Result<Self, MessageBinReadError>
pub fn load_file<T: Read + Seek>(
file: &mut T,
code_to_text: Option<&CodeToText<'_>>
) -> Result<Self, MessageBinReadError>
Load a MessageBin file from the reader.
pub fn write<T: Seek + Write>(
&self,
file: &mut T,
text_to_code: Option<&TextToCode<'_>>
) -> Result<(), MessageBinWriteError>
Trait Implementations
Returns the “default value” for a type. Read more