Add legit test for pdu encoding

This commit is contained in:
2024-07-24 20:58:12 +02:00
parent d25058fdec
commit 38976d6bc8
3 changed files with 49 additions and 26 deletions

View File

@@ -147,3 +147,7 @@ func (p *SUBMIT_SM) Size() int {
}
return size
}
func (p *SUBMIT_SM) UpdateSize() {
p.header.command_length = uint32(p.Size())
p.sm_length = byte(len(p.short_message))
}