Make addDataPadding method to avoid clutter. #668
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
addDataPadding adds bytes with 0 value to pad message to desired length.
msg\x00\x00\x00\x00\x00\x00\x00\x00\x00
becomesaddDataPadding('msg')
Good job. But it would be better to cache slices, strip the null bytes, use a compiled struct to unpack/pack the headers, and use a dispatcher.
Thank you antius!