Enum cfb::Version [] [src]

pub enum Version {
    V3,
    V4,
}

The CFB format version to use.

Variants

Version 3, which uses 512-byte sectors.

Version 4, which uses 4096-byte sectors.

Methods

impl Version
[src]

Returns the version enum for the given version number, or None.

Returns the version number for this version.

Returns the sector shift used in this version.

Returns the length of sectors used in this version.

use cfb::Version;
assert_eq!(Version::V3.sector_len(), 512);
assert_eq!(Version::V4.sector_len(), 4096);

Returns the bitmask used for reading stream lengths in this version.

Returns the number of directory entries per sector in this version.

Trait Implementations

impl Clone for Version
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Version
[src]

impl Debug for Version
[src]

Formats the value using the given formatter.

impl Eq for Version
[src]

impl PartialEq for Version
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.