bdk_chain::bitcoin::consensus::encode

Function deserialize_partial

pub fn deserialize_partial<T>(data: &[u8]) -> Result<(T, usize), Error>
where T: Decodable,
Expand description

Deserializes an object from a vector, but will not report an error if said deserialization doesn’t consume the entire vector.