diff options
author | Colin Finck <colin@reactos.org> | 2022-01-14 09:23:58 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2022-01-14 09:23:58 +0300 |
commit | bbe333090d84745f99a7ee117baab3fa7d115b16 (patch) | |
tree | cfbcdad684cca6aef06792757b194d866cb48c35 /src/attribute_value/attribute_list_non_resident.rs | |
parent | 252a6467abbc57d67dbad4143d06f6d54660e769 (diff) |
Apply suggestions from clippy.
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 |