public void ReadBytes(byte[] data)
        {
            GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned);

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