pub struct LogicalValue { /* private fields */ }Expand description
Carries the stream metadata needed to perform the logical decode pass.
Construct with LogicalValue::new after the physical decode pass fills a
&[u32] or &[u64] buffer, then call the appropriate decode_* method,
passing that slice as data.
Implementations§
Source§impl LogicalValue
impl LogicalValue
pub fn new(meta: StreamMeta) -> Self
Sourcepub fn decode_i32(
self,
data: &[u32],
dec: &mut Decoder,
) -> Result<Vec<i32>, MltError>
pub fn decode_i32( self, data: &[u32], dec: &mut Decoder, ) -> Result<Vec<i32>, MltError>
Logically decode data (physically decoded u32 words) into Vec<i32>.
Never called for LogicalEncoding::None — that case is handled directly
in the bridge (physical buffer decoded into a fresh output Vec).
Sourcepub fn decode_u32(
self,
data: &[u32],
dec: &mut Decoder,
) -> Result<Vec<u32>, MltError>
pub fn decode_u32( self, data: &[u32], dec: &mut Decoder, ) -> Result<Vec<u32>, MltError>
Logically decode data (physically decoded u32 words) into Vec<u32>.
Not called for LogicalEncoding::None — that case is handled entirely
in the bridge (physical buffer decoded directly into the output Vec).
Sourcepub fn decode_i64(
self,
data: &[u64],
dec: &mut Decoder,
) -> Result<Vec<i64>, MltError>
pub fn decode_i64( self, data: &[u64], dec: &mut Decoder, ) -> Result<Vec<i64>, MltError>
Logically decode data (physically decoded u64 words) into Vec<i64>.
Never called for LogicalEncoding::None — that case is handled directly
in the bridge (physical buffer decoded into a fresh output Vec).
Sourcepub fn decode_u64(
self,
data: &[u64],
dec: &mut Decoder,
) -> Result<Vec<u64>, MltError>
pub fn decode_u64( self, data: &[u64], dec: &mut Decoder, ) -> Result<Vec<u64>, MltError>
Logically decode data (physically decoded u64 words) into Vec<u64>.
Not called for LogicalEncoding::None — that case is handled entirely
in the bridge (physical buffer decoded directly into the output Vec).