2.1.2 Length-Prefixed Padded Unicode String (UNICODE-LP-P4)
The Length-Prefixed Padded Unicode String structure (UNICODE-LP-P4) contains a length-prefixed Unicode string, which MUST be padded so it is a multiple of 4 bytes.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Length |
|||||||||||||||||||||||||||||||
Data (variable) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Padding (variable) |
|||||||||||||||||||||||||||||||
... |
Length (4 bytes): An unsigned integer that specifies the size, in bytes, of the Data field. It MUST be a multiple of 2 bytes.
Data (variable): A Unicode string containing the value of the UNICODE-LP-P4 structure. It MUST NOT be null-terminated.
Padding (variable): A set of bytes that MUST be of the correct size such that the size of the UNICODE-LP-P4 structure is a multiple of 4 bytes. If Padding is present, it MUST be exactly 2 bytes long, and each byte MUST be 0x00.