Function to_bytes
Source pub fn to_bytes<I>(
input: I,
format: Format,
classes: &mut ClassMap<'_>,
) -> Result<Vec<u8>>
Expand description
Serialize bytes(file contents) to a file.
§Errors
If the information required for serialization is missing.
See serde_hkx::errors::ser::Error for possible errors that may occur.
§Panics
If format is not XML, Amd64, or WIn32.
That means the API is being used incorrectly.