Module reader

Module reader 

Source
Expand description

EROFS image reading and parsing functionality.

This module provides safe parsing and navigation of EROFS filesystem images, including inode traversal, directory reading, and object reference collection for garbage collection.

Structs§

Array 🔒
DataBlock
Data block containing file content
DirectoryBlock
Directory block containing directory entries
DirectoryEntries
Iterator over directory entries in a directory block
DirectoryEntry
A single directory entry with header and name
Image
Parsed EROFS image with references to key structures
Inode
Inode structure with header and variable-length data
InodeXAttrs
Extended attributes section of an inode
ObjectCollector
Collects object references from an EROFS image for garbage collection
XAttr
Extended attribute entry with header and variable-length data
XAttrIter
Iterator over local extended attributes

Enums§

ErofsReaderError
Errors that can occur when reading EROFS images
InodeType
Inode type enum allowing static dispatch for different header layouts

Traits§

InodeHeader
Common interface for accessing inode header fields across different layouts
InodeOps
Operations on inode data

Functions§

collect_objects
Collects all object references from an EROFS image
round_up
Rounds up a value to the nearest multiple of to

Type Aliases§

ReadResult 🔒