use crate::error::Result;
use crate::reader::BinaryReader;
use std::io::{Read, Seek};
#[derive(Debug)]
pub struct AuditTag {
pub time: f64,
pub tag1: String,
pub tag2: String,
pub unknown_long: u32,
}
impl AuditTag {
pub const SIZE: usize = 112;
pub(crate) fn read<R: Read + Seek>(r: &mut BinaryReader<R>) -> Result<Self> {
let time = r.read_windows_filetime()?;
let tag1 = r.read_utf16_fixed(50)?;
let tag2 = r.read_utf16_fixed(50)?;
let unknown_long = r.read_u32()?;
Ok(Self {
time,
tag1,
tag2,
unknown_long,
})
}
}