poe_data_tools 1.0.0

A library for working with Path of Exile game data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::file_parsers::{FileParser, VersionedResult, VersionedResultExt};

pub mod parser;
pub mod types;
use parser::parse_bundle_index_bytes;
use types::BundleIndexFile;

pub struct BundleIndexParser;

impl FileParser for BundleIndexParser {
    type Output = BundleIndexFile;

    fn parse(&self, bytes: &[u8]) -> VersionedResult<Self::Output> {
        parse_bundle_index_bytes(bytes).unversioned()
    }
}