aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-11-25 14:23:43 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-11-25 14:23:43 +0100
commit2dcf649c6c125083ac4c5bd93de89850a8cdaea7 (patch)
tree14ebd79b32cbfb649b4c5197e69491c0f6693418 /src
parent1b1fca8138485920590d04b04ba699e78a418934 (diff)
downloadcbconv-2dcf649c6c125083ac4c5bd93de89850a8cdaea7.tar.gz
cbconv-2dcf649c6c125083ac4c5bd93de89850a8cdaea7.tar.bz2
cbconv-2dcf649c6c125083ac4c5bd93de89850a8cdaea7.zip
Print the node values we know of yet.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
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, ()))
}