Skip to content

Implement Pdu::TryFrom<&[u8]>. - #22

Open
stefand wants to merge 1 commit into
eeeeeta:masterfrom
stefand:pdufromu8
Open

Implement Pdu::TryFrom<&[u8]>.#22
stefand wants to merge 1 commit into
eeeeeta:masterfrom
stefand:pdufromu8

Conversation

@stefand

@stefand stefand commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

Here's the promised Pdu::from implementation. I have used it to parse SMS from the storage of Mocor and MAUI dumbphones.

When reviewing, have a look in particular of the handling of the validity_period octet. Online sources I ran into suggest that it is optional, but I found that the octet is always present (i.e., I'm incrementing the offset unconditionally), its just sometimes 0. I don't care about the particular value for my use case.

Yeah, tests would be nice, but this is a hobby project and I may or may not get to it at some point.

@stefand

stefand commented Mar 29, 2025

Copy link
Copy Markdown
Contributor Author

Hi! Did you have a chance to look at this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant