diff options
Diffstat (limited to 'src/attribute_value/attribute_list_non_resident.rs')
-rw-r--r-- | src/attribute_value/attribute_list_non_resident.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attribute_value/attribute_list_non_resident.rs b/src/attribute_value/attribute_list_non_resident.rs index cc4db33..afcc327 100644 --- a/src/attribute_value/attribute_list_non_resident.rs +++ b/src/attribute_value/attribute_list_non_resident.rs @@ -65,6 +65,11 @@ impl<'n, 'f> NtfsAttributeListNonResidentAttributeValue<'n, 'f> { self.stream_state.data_position() } + /// Returns `true` if the non-resident attribute value contains no data. + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + /// Returns the total length of the non-resident attribute value data, in bytes. pub fn len(&self) -> u64 { self.data_size |