From 7b8081a79fb3db4a76f9e4cca8f8a88e6e7f873c Mon Sep 17 00:00:00 2001 From: Genny Date: Wed, 15 Sep 2021 22:16:30 -0500 Subject: Reading, fix writing, monocommit --- src/block/extension/application.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/block/extension/application.rs (limited to 'src/block/extension/application.rs') diff --git a/src/block/extension/application.rs b/src/block/extension/application.rs new file mode 100644 index 0000000..b3516d8 --- /dev/null +++ b/src/block/extension/application.rs @@ -0,0 +1,15 @@ +pub struct Application { + pub(crate) identifier: String, // max len 8 + pub(crate) authentication_code: [u8; 3], + pub(crate) data: Vec, +} + +impl Application { + pub fn identifier(&self) -> &str { + &self.identifier + } + + pub fn authentication_code(&self) -> &[u8] { + &self.authentication_code + } +} -- cgit 1.4.1-3-g733a5