2.5.30 XLUnicodeString

This structure specifies a Unicode string.


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

cch

A

reserved

rgb (variable)

...

cch (2 bytes): An unsigned integer that specifies the count of characters in the string.

A - fHighByte (1 bit): A bit that specifies whether the characters in rgb are double-byte characters. MUST be a value from the following table.

Value

Meaning

0x0

All the characters in the string have a high byte of 0x00, and only the low bytes are in rgb.

0x1

All the characters in the string are saved as 2-byte Unicode characters in rgb.

reserved2 (7 bits): MUST be set to zero, and MUST be ignored.

rgb (variable): An array of bytes that specifies the characters. If fHighByte is set to 0x0, the size of the array MUST be equal to cch. If fHighByte is set to 0x1, the size of the array MUST be equal to cch times 2.