2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.OLE
|
2025-09-26 11:57:18 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The UnicodeString packet represents a Unicode string.
|
|
|
|
|
/// </summary>
|
2025-10-30 22:52:56 -04:00
|
|
|
/// <see href="https://winprotocoldoc.z19.web.core.windows.net/MS-OLEPS/%5bMS-OLEPS%5d.pdf"/>
|
2025-09-26 11:57:18 -04:00
|
|
|
public class UnicodeString
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The length in 16-bit Unicode characters of the <see cref="Characters"/> field, including the null
|
|
|
|
|
/// terminator, but not including padding (if any).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Length { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If <see cref="Length"/> is zero, this field MUST be zero bytes in length. If <see cref="Length"/> is
|
|
|
|
|
/// nonzero, this field MUST be a null-terminated array of 16-bit Unicode characters, followed by zero
|
|
|
|
|
/// padding to a multiple of 4 bytes. The string represented by this field SHOULD NOT contain
|
|
|
|
|
/// embedded or additional trailing null characters.
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public string Characters { get; set; } = string.Empty;
|
2025-09-26 11:57:18 -04:00
|
|
|
}
|
|
|
|
|
}
|