mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
056f4c0914
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4784 21ef857c-d57f-4fe0-8362-d861dc6d29cd
37 lines
940 B
C#
37 lines
940 B
C#
using ProcessHacker.Native.Api;
|
|
|
|
namespace ProcessHacker.Native.SsLogging
|
|
{
|
|
public sealed class SsUnicodeString : SsData
|
|
{
|
|
internal SsUnicodeString(MemoryRegion data)
|
|
{
|
|
KphSsUnicodeString unicodeStringInfo = data.ReadStruct<KphSsUnicodeString>();
|
|
|
|
this.Original = new UnicodeString
|
|
{
|
|
Length = unicodeStringInfo.Length,
|
|
MaximumLength = unicodeStringInfo.MaximumLength,
|
|
Buffer = unicodeStringInfo.Pointer
|
|
};
|
|
|
|
this.String = data.ReadUnicodeString(
|
|
KphSsUnicodeString.BufferOffset,
|
|
unicodeStringInfo.Length / 2
|
|
);
|
|
}
|
|
|
|
public UnicodeString Original
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public string String
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
}
|
|
}
|