Values, Cleaning, Docs, Tests, Example (Current Example is Wrong)
This commit is contained in:
parent
775282caf4
commit
c2a7afe6c1
37 changed files with 1693 additions and 520 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue