Vendor rawler 0.7.2 unmodified

The crate as crates.io publishes it, minus .cargo-ok, its Cargo.lock and
data/testdata (13 MB of sample files only its own tests read). Not yet
routed through [patch.crates-io]; the next commit is the patch.
This commit is contained in:
2026-09-27 17:33:19 -04:00
parent 0d9feb0556
commit 77a1925bac
940 changed files with 66954 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// SPDX-License-Identifier: MIT
// Copyright 2020 Alfred Gutierrez
// Copyright 2021 Daniel Vogelbacher <daniel@chaospixel.com>
use super::{BoxHeader, FourCC, ReadBox, Result};
use serde::Serialize;
use std::io::{Read, Seek, SeekFrom};
#[derive(Debug, Clone, PartialEq, Default, Serialize)]
pub struct FreeBox {
pub header: BoxHeader,
}
impl FreeBox {
pub const TYP: FourCC = FourCC::with(['f', 'r', 'e', 'e']);
}
impl<R: Read + Seek> ReadBox<&mut R> for FreeBox {
fn read_box(reader: &mut R, header: BoxHeader) -> Result<Self> {
reader.seek(SeekFrom::Start(header.end_offset()))?;
Ok(Self { header })
}
}