Prerequisites
Problem Statement
Unable to read an mpq file from a buffer of bytes directly (Vec etc)
Proposed Solution
implement a load function for Archive struct that can work directly with a buffer, instead of relying on a provided path to read from filesystem.
Alternatives Considered
https://github.com/msierks/mpq-rust/blob/c0bdb2863dbc3d7583e69ea7692d47a0bf42a4de/src/archive.rs#L155
There is a similar function in a related crate, which could serve as a good example. However that crate lacks several features needed for my use-case.
Feature Type
API improvement
Priority
High - Blocking my use case
Affected Components
Use Cases
I need to be able to read a file directly from Buffers, as there is no support for std::fs::File in wasm32 env.
Technical Considerations
No response
Examples
No response
Additional Context
No response
Implementation
Prerequisites
Problem Statement
Unable to read an mpq file from a buffer of bytes directly (Vec etc)
Proposed Solution
implement a load function for Archive struct that can work directly with a buffer, instead of relying on a provided path to read from filesystem.
Alternatives Considered
https://github.com/msierks/mpq-rust/blob/c0bdb2863dbc3d7583e69ea7692d47a0bf42a4de/src/archive.rs#L155
There is a similar function in a related crate, which could serve as a good example. However that crate lacks several features needed for my use-case.
Feature Type
API improvement
Priority
High - Blocking my use case
Affected Components
Use Cases
I need to be able to read a file directly from Buffers, as there is no support for std::fs::File in wasm32 env.
Technical Considerations
No response
Examples
No response
Additional Context
No response
Implementation