public void ReadBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); _sector = (_SectorHeader)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_SectorHeader)); handle.Free(); }
public SectorHeader() { _sector = new _SectorHeader(); }