mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
dca3603551
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2393 21ef857c-d57f-4fe0-8362-d861dc6d29cd
34 lines
782 B
C#
34 lines
782 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using ProcessHacker.Native.Api;
|
|
|
|
namespace ProcessHacker.Native.SsLogging
|
|
{
|
|
public class SsBytes : SsData
|
|
{
|
|
public SsBytes(MemoryRegion data)
|
|
{
|
|
KphSsBytes bytes;
|
|
byte[] buffer;
|
|
|
|
bytes = data.ReadStruct<KphSsBytes>();
|
|
buffer = new byte[bytes.Length];
|
|
System.Runtime.InteropServices.Marshal.Copy(
|
|
data.Memory.Increment(KphSsBytes.BufferOffset),
|
|
buffer,
|
|
0,
|
|
buffer.Length
|
|
);
|
|
|
|
this.Bytes = buffer;
|
|
}
|
|
|
|
public byte[] Bytes
|
|
{
|
|
get;
|
|
internal set;
|
|
}
|
|
}
|
|
}
|