NScumm.Platform.WriteStructure C# (CSharp) Метод

WriteStructure() публичный Метод

public WriteStructure ( byte data, int offset, Type type ) : IWrappedObject
data byte
offset int
type System.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));
        }
    }