2.2.3.2.1 CountedString
The strings in the header section are defined as CountedString. The CountedString has a one-byte format identifier, followed by the length of the encoded string in bytes and the encoded bytes.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
StringEncoding |
Length |
||||||||||||||||||||||||||||||
... |
StringData (variable) |
||||||||||||||||||||||||||||||
... |
StringEncoding (1 byte): A StringEncoding value that identifies whether the string encoding is UTF-8 or Unicode.
Length (4 bytes): An int32 value that specifies the length of StringData in bytes.
StringData (variable): The string data whose length is specified in the Length field and encoding specified in the StringEncoding field.