Expand description
Contain the data obtained from a binary flow file. It is hightly recommended to process it with
[FlowDataOutput
] if you plan to do high level modification on it.
The file contain a list of dictionaries, and a list of vectors, orderer.
Each entry of the dictionary/vector can be a string or a reference to another dic/vec
Dictionary are indixed by String, Vec by position.
Fields
unknown1: u32
unknown2: u16
Implementations
sourceimpl FlowData
impl FlowData
sourcepub fn push_dictionary(
&mut self,
values: HashMap<String, FlowDataValue>
) -> Result<u16, FlowDataError>
pub fn push_dictionary(
&mut self,
values: HashMap<String, FlowDataValue>
) -> Result<u16, FlowDataError>
A new dictionary to the FlowData
sourcepub fn push_vector(
&mut self,
values: Vec<FlowDataValue>
) -> Result<u16, FlowDataError>
pub fn push_vector(
&mut self,
values: Vec<FlowDataValue>
) -> Result<u16, FlowDataError>
Add a new vector in the FlowData
sourcepub fn dictionary_len(&self) -> usize
pub fn dictionary_len(&self) -> usize
return the number of dictionary
sourcepub fn vector_len(&self) -> usize
pub fn vector_len(&self) -> usize
return the number of vector
sourcepub fn get_dictionary(
&self,
dicid: usize
) -> Option<&HashMap<String, FlowDataValue>>
pub fn get_dictionary(
&self,
dicid: usize
) -> Option<&HashMap<String, FlowDataValue>>
return a reference to a dictionary if it exist, None otherwise
sourcepub fn get_dictionary_mut(
&mut self,
dicid: usize
) -> Option<&mut HashMap<String, FlowDataValue>>
pub fn get_dictionary_mut(
&mut self,
dicid: usize
) -> Option<&mut HashMap<String, FlowDataValue>>
return a mutable reference to a dictionary if it exist, None otherwise
sourcepub fn get_vector(&self, vecid: usize) -> Option<&Vec<FlowDataValue>>
pub fn get_vector(&self, vecid: usize) -> Option<&Vec<FlowDataValue>>
return a reference to a vector if it exist, None otherwise.
sourcepub fn get_vector_mut(
&mut self,
vecid: usize
) -> Option<&mut Vec<FlowDataValue>>
pub fn get_vector_mut(
&mut self,
vecid: usize
) -> Option<&mut Vec<FlowDataValue>>
return a mutable reference to a vector if it exist, None otherwise.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FlowData
impl Send for FlowData
impl Sync for FlowData
impl Unpin for FlowData
impl UnwindSafe for FlowData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more