2.2.5.1 LengthPrefixedName

The LengthPrefixedName type specifies an array of Unicode characters prefixed by the array length in characters.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length

Name (variable)

...

Length (4 bytes): An unsigned long that MUST contain the number of Unicode characters in the Name field and MUST NOT be zero.

Name (variable): This MUST contain an array of Unicode characters in UTF-16 encoding, as specified in [RFC2781]); the array SHOULD NOT end in a NULL terminator.