public WriteStructure ( byte data, int offset, |
||
data | byte | |
offset | int | |
type | ||
Результат | IWrappedObject |
public IWrappedObject WriteStructure(byte[] data, int offset, Type type)
{
var handle = GCHandle.Alloc(data, GCHandleType.Pinned);
return new WrappedObject(handle, Marshal.PtrToStructure(handle.AddrOfPinnedObject() + offset, type));
}
}