-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Currently Command and CommandView<'a> implement the same logic that could be, respectively:
CAPDU<heapless::Vec<u8>>,CAPDU<&[u8]>.
Also, current code covers edge cases that can be eliminated with rust enum of Short/Extended variants:
Lines 193 to 198 in 4eb8ac1
| | (_, false, false, ExtendedLen::Forced) => { | |
| unreachable!("Can't have non extended Lc and extended Le") | |
| } | |
| (_, true, true, _) => { | |
| unreachable!("Can't have both no data and data extended length") | |
| } |
Maybe let's create a new crate?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels