pub struct Ntfs { /* private fields */ }
Expand description

Root structure describing an NTFS filesystem.

Implementations

Creates a new Ntfs object from a reader and validates its boot sector information.

The reader must cover the entire NTFS partition, not more and not less. It will be rewinded to the beginning before reading anything.

Returns the size of a single cluster, in bytes.

Returns the NtfsFile for the given NTFS File Record Number.

The first few NTFS files have fixed indexes and contain filesystem management information (see the KnownNtfsFileRecordNumber enum).

Returns the size of a File Record of this NTFS filesystem, in bytes.

Returns the absolute byte position of the Master File Table (MFT).

Reads the $UpCase file from the filesystem and stores it in this Ntfs object.

This function only needs to be called if case-insensitive comparisons are later performed (i.e. finding files).

Returns the root directory of this NTFS volume as an NtfsFile.

Returns the size of a single sector in bytes.

Returns the 64-bit serial number of this NTFS volume.

Returns the partition size in bytes.

Returns an NtfsVolumeInformation containing general information about the volume, like the NTFS version.

Returns an NtfsVolumeName to read the volume name (also called volume label) of this NTFS volume.

Note that a volume may also have no label, which is why the return value is further encapsulated in an Option.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.