Skip to content
Snippets Groups Projects
Commit ada3d9a0 authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Use ‘bytes’ crate to read scalars

Before we parsed the scalars by hand by tracking an offset and picking
out individual byte indices. Now we delegate this to the bytes crate.
This simplifies the generated code significantly (the bytes crate was
already a dependency of the generated code).

Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
Change-Id: Ifa6f822df6aba06bcf13b8694ea182d7f1cfac1d
parent 7b828af4
No related branches found
No related tags found
No related merge requests found
Showing
with 199 additions and 219 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment