/// Void binary file.
pub struct VoidBIN {
/// Each byte will be filled to this.
pub content: u8,
/// Unit: bytes.
pub size: usize,
}
#[allow(clippy::derivable_impls)]
impl Default for VoidBIN {
fn default() -> Self {
Self {
content: 0,
size: 0,
}
}
}
impl VoidBIN {
pub fn data(&self) -> Vec<u8> {
vec![self.content; self.size]
}
}