2.2.4.3 OLETX_VARLEN_STRING

 The OLETX_VARLEN_STRING structure is used to represent a byte-counted variable-length 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

cbLength

szString (variable)

...

cbLength (4 bytes): An unsigned integer that MUST contain the number of bytes in the szString field.

szString (variable): A Latin-1 string as specified in [ISO/IEC-8859-1] without a final null-terminating character. This field MUST be cbLength bytes in length. If cbLength is zero, this field MUST NOT be present.