acridotheres-3ds 0.2.1

Nintendo 3DS-specific file formats for Acridotheres
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::UmsbtFile;
use dh::{recommended::*, Readable, Writable};
use std::io::Result;

pub fn extract<'a>(
    reader: &mut dyn Readable<'a>,
    target: &mut dyn Writable<'a>,
    file: &UmsbtFile,
    buffer_size: u64,
) -> Result<()> {
    reader.copy_at(file.offset as u64, file.size as u64, target, buffer_size)
}