pub mod constants; pub mod reader; pub mod writer; pub use reader::PackedReader; pub use writer::PackedWriter; use super::{BinarySource, DomainDecode, Embeddable, IOResult, IOValue, IOValueDomainDecode, NestedValue, Reader}; pub fn from_bytes, Dec: DomainDecode>( bs: &[u8], decode_embedded: Dec, ) -> IOResult { super::BytesBinarySource::new(bs).packed(decode_embedded).demand_next(false) } pub fn iovalue_from_bytes(bs: &[u8]) -> IOResult { from_bytes(bs, IOValueDomainDecode) } pub fn annotated_from_bytes, Dec: DomainDecode>( bs: &[u8], decode_embedded: Dec, ) -> IOResult { super::BytesBinarySource::new(bs).packed(decode_embedded).demand_next(true) } pub fn annotated_iovalue_from_bytes(bs: &[u8]) -> IOResult { annotated_from_bytes(bs, IOValueDomainDecode) }