Implement bounded Binary LLSD codec

This commit is contained in:
2026-08-09 00:29:07 +00:00
parent d152e80ef9
commit 7a4f1f2fb1
17 changed files with 965 additions and 208 deletions

View File

@@ -156,11 +156,11 @@ mod tests {
deserialize_bytes(b"Unknown conference".to_vec()),
Err(Error::Argument)
);
assert_eq!(
deserialize_bytes(b"<? llsd/binary ?>i\0\0\0\0".to_vec()),
Ok(OSD::Integer(0))
);
let cases: &[(&[u8], &str)] = &[
(
b"<? llsd/binary ?>i\0\0\0\0",
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.Byte[])",
),
(
b"<? llsd/protobuf ?>",
"M:LibreMetaverse.StructuredData.OSDParser.DeserializeLLSDProtobuf(System.Byte[])",