MCPcopy Create free account
hub / github.com/ElementsProject/lightning / decode_with_len_prefix

Function decode_with_len_prefix

plugins/lsps-plugin/src/core/tlv.rs:395–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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<()> {

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected