From 39bb3a06f8d60f10724a18c09a9dbc2dcc3f844c Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 23 Nov 2026 01:41:05 +0000 Subject: [PATCH] craft-aaf: document the property record fields and errors (next denies missing docs) --- crates/aaf/src/aaf/properties.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/aaf/src/aaf/properties.rs b/crates/aaf/src/aaf/properties.rs index 5db9619ac..e9e6d4556 100644 --- a/crates/aaf/src/aaf/properties.rs +++ b/crates/aaf/src/aaf/properties.rs @@ -3,17 +3,24 @@ /// One indexed AAF property. The payload borrows the original stream. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct Property<'a> { + /// The property ID (pid). pub id: u16, + /// The stored form of the value, as the index records it. pub form: u16, + /// The value's bytes. pub payload: &'a [u8], } /// Malformed property-stream framing. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum PropertyError { + /// The stream ends before its 4-byte header. ShortHeader, + /// The header's byte-order mark is not little-endian (0x4c). UnsupportedByteOrder, + /// The stream ends inside the property index. TruncatedIndex, + /// A property's length runs past the end of the stream. TruncatedValue, }