tag | 451dfb64a3eb330803c30d311666ee9a71f6fe41 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Apr 24 20:07:43 2024 -0700 |
object | a8fdb1a1586fd09d0b871a9dbfb52c5e3f202855 |
aml_sta_341615000 (11423312,com.google.android.go.os.statsd,com.google.android.os.statsd)
commit | a8fdb1a1586fd09d0b871a9dbfb52c5e3f202855 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Oct 31 23:05:13 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Oct 31 23:05:13 2023 +0000 |
tree | 897836674c74faac90707276de61c91a3c2e8c6b | |
parent | ad2f97482d624e4b0c5ed9b90fdfe602c4760da1 [diff] | |
parent | 5ad493ce1a6d335af300f7a2b6369b0a9de317f4 [diff] |
Snap for 11031605 from 5ad493ce1a6d335af300f7a2b6369b0a9de317f4 to mainline-os-statsd-release Change-Id: Id026a5bbcd10bdb7d4045bbfe708a48f28799efa
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.rs
Language specific instructions are provided for all supported backends: