Skip to main content

Crate orbis_pfs

Crate orbis_pfs 

Source
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§

directory
file
header
image
inode
pfsc

Structs§

Pfs
Represents a loaded PFS.

Enums§

OpenError
Shared errors for PFS open operations.
OpenImageError
Errors for open_image().
OpenSliceError
Errors for open_slice().

Functions§

open_image
Opens a PFS image for reading from any Image implementation.
open_slice
Opens a PFS image for reading from a byte slice.