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

            _sector = (_XASectorForm2)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_XASectorForm2));
            handle.Free();
        }
Esempio n. 2
0
 public XASectorForm2()
 {
     _sector = new _XASectorForm2();
 }