Пример #1
0
        public void ReadBytes(byte[] data)
        {
            GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);

            _sector = (_XASectorForm1)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_XASectorForm1));
            handle.Free();
        }
Пример #2
0
 public XASectorForm1()
 {
     _sector = new _XASectorForm1();
 }
Пример #3
0
 public void ReadBytes(byte[] data)
 {
     GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);
     _sector = (_XASectorForm1)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_XASectorForm1));
     handle.Free();
 }
Пример #4
0
 public XASectorForm1()
 {
     _sector = new _XASectorForm1();
 }