Crate pk2

Source
Expand description

A crate for reading and writing Silkroad Online’s pk2 archive format.

§Examples

use pk2::unsync::Pk2;
let archive = Pk2::open(archive_path, key)
    .unwrap_or_else(|_| panic!("failed to open archive at {:?}", archive_path));

§Features

  • euc-kr: enabled by default, adds encoding_rs as a dependency which changes string reading and writing to use the euc-kr encoding which is required for the original game archives.

Re-exports§

pub use self::sync::Lock as SyncLock;
pub use self::unsync::Lock as UnsyncLock;

Modules§

sync
unsync

Structs§

Directory
File
Access read-only file handle.
FileMut
Access write-able file handle.
InvalidKey
Pk2
ReadOnly

Enums§

ChainLookupError
DirEntry
OpenError

Traits§

Lock
LockChoice

Type Aliases§

ChainLookupResult