mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7bd28e4357
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
39 lines
1010 B
C#
39 lines
1010 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
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;
|
|
}
|
|
}
|
|
}
|