pub struct RenpyArchive<'a> { /* private fields */ }
Expand description

Represents the Renpy archive format

Implementations

Construct a RenpyArchive from a file on the filesystem

This performs I/O operations as it reads the magic literal and the rest of the file to decode the indices present in the archive.

Errors

An error occurs if either an invalid path has been provided to the OS, I/O errors occurs during reading the file, the zlib decoding fails, or the serde deserialization process fails.

Panics

This function panics if it either encounters an unsupported RpaVersion, i.e. a variant not covered in the enum declaration, or the integer parsing while constructing the obfuscation key fails.

Method to get access to the collection data structure of RpaIdx

Lists all the files present in one archive

Extracts all files from the indices and writes them to disk

Reads the byte buffer of the specified file in the archive into memory

Writes the byte buffer of one file to disk

Calculates an estimation of the overall write speed, in MB/s.

Returns the total amount of bytes written to disk

Returns the duration it took to write all bytes to disk

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more