Android VTS 15.0 Release 8 (15149653)
Snap for 12359238 from 791671b63502e647d0321a7c4ec3184d9eca7aea to android15-tests-release Change-Id: Ib2e36e0908ec12587472ef465169bb49c3e237aa
PDL is a domain specific language for writing the definition of binary protocol packets. Parsing and validating packets from raw bytes is tedious and error prone in any language. PDL generates memory safe and tailored backends for multiple target languages:
- Rust - C++ - Python
Historically PDL was developed as part of the Android Bluetooth stack (bluetooth_packetgen) as a way to generate the parser and serializer for Bluetooth packets, and reduce the number of memory safety issues that come with manipulating and validating raw data.
cargo run my-protocol.pdl --output-format rust > my-protocol.rsLanguage specific instructions are provided for all supported backends: