Files
mirror-processhacker/1.x/trunk/ProcessHacker.Native/SsLogging/SsBytes.cs
T
wj32 dca3603551 added Bytes capturing to KphSs
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2393 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-12-05 09:59:10 +00:00

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;
}
}
}