Values, Cleaning, Docs, Tests, Example (Current Example is Wrong)

This commit is contained in:
Alex Emmet 2026-06-22 23:29:18 +02:00
commit c2a7afe6c1
37 changed files with 1693 additions and 520 deletions

View file

@ -1,25 +1,17 @@
pub mod communication_value;
pub mod data_value;
pub mod util;
pub use communication_value::CommunicationValue;
pub use data_value::{DataKind, DataValue};
pub use util::rand_u32;
pub use mtp_common::CodecError;
pub use mtp_type_map::{
communication_type_name, data_type_name, CommunicationType, CommunicationTypeId, DataType,
DataTypeId, PROTOCOL_VERSION, TypeMap, Version,
DataTypeId, TypeMap, Version, PROTOCOL_VERSION,
};
use mtp_common::CodecError;
pub fn encode(_value: &DataValue, _typemap: &TypeMap) -> Result<Vec<u8>, CodecError> {
todo!()
}
pub fn decode(_bytes: &[u8], _typemap: &TypeMap) -> Result<DataValue, CodecError> {
todo!()
pub(crate) fn rand_u32() -> u32 {
rand::random()
}
#[cfg(feature = "registry")]