From 2dcf649c6c125083ac4c5bd93de89850a8cdaea7 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 25 Nov 2020 14:23:43 +0100 Subject: Print the node values we know of yet. --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 7546df8..4bcc7a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -290,6 +290,9 @@ fn container_node<'a>(data: &'a [u8]) -> IResult<&'a [u8], ()> { fn object_node<'a>(data: &'a [u8]) -> IResult<&'a [u8], ()> { let (r, (_, name, num, payload)) = tuple((tag(b"\xff\xff\xff\xff"), cmstring, be_u16, length_data(be_u32)))(data)?; println!(" Object: {}, {}, {}", name, num, payload.len()); + + let (_, nv) = node_value(name, payload)?; + println!(" {:?}", nv); Ok((r, ())) } -- cgit v1.2.3