Expand description
Wildcard handler for unsupported or unrecognized file types.
This module provides the Unknown type, which acts as a passthrough for files that
don’t have dedicated parsers in rpfm_lib. It stores the raw binary data without attempting
to decode it, allowing safe manipulation of any file type.
§Use Cases
- Working with file types that don’t have dedicated support
- Reading and re-saving files without modification
- Custom processing of binary data outside rpfm_lib
- Placeholder for future file type implementations
§Example
ⓘ
use rpfm_lib::files::{Decodeable, Encodeable, unknown::Unknown, DecodeableExtraData, EncodeableExtraData};
use std::io::Cursor;
// Read arbitrary binary data
let data = vec![0x01, 0x02, 0x03, 0x04];
let mut reader = Cursor::new(data.clone());
let unknown = Unknown::decode(&mut reader, &None).unwrap();
// Access raw data
assert_eq!(unknown.data(), &data);Structs§
- Unknown
- Container for unsupported or unrecognized file data.