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/resident.rs | |
parent | 252a6467abbc57d67dbad4143d06f6d54660e769 (diff) |
Apply suggestions from clippy.
Diffstat (limited to 'src/attribute_value/resident.rs')
-rw-r--r-- | src/attribute_value/resident.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/attribute_value/resident.rs b/src/attribute_value/resident.rs index 85c4a69..65d8878 100644 --- a/src/attribute_value/resident.rs +++ b/src/attribute_value/resident.rs @@ -50,6 +50,11 @@ impl<'f> NtfsResidentAttributeValue<'f> { } } + /// Returns `true` if the resident attribute value contains no data. + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + /// Returns the total length of the resident attribute value data, in bytes. pub fn len(&self) -> u64 { self.data.len() as u64 |