Expand description
A library for reading PlayStation 4 PFS (PlayStation File System) images.
This crate provides functionality to parse and read files from PFS images, which are used by the PlayStation 4 to store game data and other content.
§Features
- Parse PFS image headers and metadata
- Read files and directories from PFS images
- Support for both encrypted and unencrypted PFS images
- Support for compressed files (PFSC format)
- Thread-safe: all read operations use positional I/O (
read_at) — no shared mutable cursor, no locks in the read path
§Example
// Open a PFS image from a byte slice (e.g. memory-mapped file)
let data = std::fs::read("image.pfs").unwrap();
let pfs = orbis_pfs::open_slice(&data, None).unwrap();
// Access the root directory
let root = pfs.root();§References
Modules§
Structs§
- Pfs
- Represents a loaded PFS.
Enums§
- Open
Error - Shared errors for PFS open operations.
- Open
Image Error - Errors for
open_image(). - Open
Slice Error - Errors for
open_slice().
Functions§
- open_
image - Opens a PFS image for reading from any
Imageimplementation. - open_
slice - Opens a PFS image for reading from a byte slice.