AppAppWorks / ole_kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ole_kit is a zero-copy Rust library for parsing Microsoft OLE Compound File. It is a port from the Swift implementation used in Aloud! - Text to Speech.

Usage

// create the CFB structure from a file
let cfb = Cfb::from_path("example/testing.doc");
// get the root storage directory entry
let root_entry = cfb.directories().next().map(|dir| dir.entry(0));
// read the bytes of the stream object named "WordDocument"
let word_document_bytes = cfb.stream_bytes("WordDocument");

About


Languages

Language:Rust 100.0%