Skip to content

Commit d3ef75d

Browse files
a1iencathay4t
authored andcommitted
Allow create DefaultNla
1 parent f009fdb commit d3ef75d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/nla.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ pub struct DefaultNla {
183183
value: Vec<u8>,
184184
}
185185

186+
impl DefaultNla {
187+
pub fn new(kind: u16, value: Vec<u8>) -> Self {
188+
Self { kind, value }
189+
}
190+
}
191+
186192
impl Nla for DefaultNla {
187193
fn value_len(&self) -> usize {
188194
self.value.len()

0 commit comments

Comments
 (0)