Length fields are used to specify the number of bytes in a related data field and must immediately proceed the data field.
A Length is a positive integer. It is encoded identically to an int field.
By convention, a Length field uses the same name as its related data field, plus the suffix 'Length', e.g. Signature and SignatureLength.
| Example | Valid | Notes |
|---|---|---|
| 23 | ||
| 00023 | ||
| -23 | Must be positive | |
| 0 | Must be positive |