Tutorials.musl

Tutorial - Padders.pad to length

Jump to Topic:
Padding to a specific length is another common construct. Especially when MuSL is parametrized, the spread-sheet generated values will need to be padded properly to ensure the validity of the protocol. For example in DHCP, the server-name field is 64-bytes. When this field is parametrized, we always need the name to be exactly 64-bytes.
  • You can specify the padding byte
  • And also note that pad_to_length truncates to the specified length, if necessary
processing...

Edit MuSL!

Over the Wire