craft-aaf: document the property record fields and errors (next denies missing docs)

This commit is contained in:
aiongg committed 2026-11-23 01:41:05 +00:00
1 parent 8ea9184ca5
commit 39bb3a06f8
1 file changed
+7
+7
View File
@@ -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,
}