()
| 393 | |
| 394 | #[test] |
| 395 | fn decode_with_len_prefix() -> Result<()> { |
| 396 | let payload = "1202039896800401760608000073000f2c0007"; |
| 397 | let stream = TlvStream::from_bytes_with_length_prefix(&hex::decode(payload).unwrap())?; |
| 398 | // let stream: TlvStream = serde_json::from_str(payload)?; |
| 399 | println!("TLV {:?}", stream.0); |
| 400 | |
| 401 | Ok(()) |
| 402 | } |
| 403 | |
| 404 | #[test] |
| 405 | fn bigsize_boundary_minimal_encodings() -> Result<()> { |