Crate fat_fs_types

source ·
Expand description

§Rust crate fat_fs_types

Low-level #![no_std] helper library for accessing Microsoft’s FAT12/16/32 and exFAT file systems. Only defines constants, types and some very simple functions.

You will want to use one of the features zerocopy or bytemuck (together with the respective crate).

A lot of the structs in here only implement Copy if you have feature = "bytemuck" enabled since some of them are quite large. All #[repr(C)] structs with public fields have a stable layout, no padding and an alignment of 1.

§License

This crate is licensed under the MIT license.

Re-exports§

Modules§

Structs§

Constants§

Functions§

  • Encodes (year, month, day) into a packed native-endian FAT/exFAT date.
  • Encodes (hours, minutes, millis) into a packed native-endian FAT/exFAT time, rounding down.
  • Decodes a packed native-endian FAT/exFAT date into (year, month, day).
  • Decodes a packed native-endian FAT/exFAT time into (hours, minutes, millis).

Type Aliases§

  • A globally unique identifier (usually called universally unique identifier/UUID outside the Microsoft world) with mixed endianness.
  • Logical block addressing address or offset.
  • Unaligned little-endian 16-bit integer.
  • Unaligned little-endian 32-bit integer.
  • Unaligned little-endian 64-bit integer.