#[repr(C)]pub struct LongAllocationDescriptor {
pub extent_length: u32,
pub logical_block_num: u32,
pub partition_ref_num: u16,
pub impl_use: [u8; 6],
}Available on crate feature
sync only.Expand description
Long allocation descriptor (ECMA-167 4/14.14.2)
Used to reference data that may span multiple partitions
@hadris-spec ECMA-167:4/14.14.2 @hadris-compliance partial @hadris-note The layout is modeled and tested, but all partition-reference and extent semantics are not validated at this layer. @hadris-tests comprehensive_udf::test_allocation_descriptor_sizes @hadris-fuzz udf_read
Fields§
§extent_length: u32Extent length (high 2 bits indicate type)
logical_block_num: u32Logical block number
partition_ref_num: u16Partition reference number
impl_use: [u8; 6]Implementation use (6 bytes)
Implementations§
Source§impl LongAllocationDescriptor
impl LongAllocationDescriptor
Sourcepub fn extent_type(&self) -> ExtentType
pub fn extent_type(&self) -> ExtentType
Get the extent type
Sourcepub fn is_recorded(&self) -> bool
pub fn is_recorded(&self) -> bool
Check if this is a recorded and allocated extent
Sourcepub fn extent_location(&self) -> LbAddr
pub fn extent_location(&self) -> LbAddr
Get the extent location (legacy accessor)
Trait Implementations§
Source§impl Clone for LongAllocationDescriptor
impl Clone for LongAllocationDescriptor
Source§fn clone(&self) -> LongAllocationDescriptor
fn clone(&self) -> LongAllocationDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LongAllocationDescriptor
Source§impl Debug for LongAllocationDescriptor
impl Debug for LongAllocationDescriptor
Source§impl Default for LongAllocationDescriptor
impl Default for LongAllocationDescriptor
Source§fn default() -> LongAllocationDescriptor
fn default() -> LongAllocationDescriptor
Returns the “default value” for a type. Read more
impl Pod for LongAllocationDescriptor
Auto Trait Implementations§
impl Freeze for LongAllocationDescriptor
impl RefUnwindSafe for LongAllocationDescriptor
impl Send for LongAllocationDescriptor
impl Sync for LongAllocationDescriptor
impl Unpin for LongAllocationDescriptor
impl UnsafeUnpin for LongAllocationDescriptor
impl UnwindSafe for LongAllocationDescriptor
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.