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

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