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

            _sector = (_SectorHeader)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_SectorHeader));
            handle.Free();
        }
예제 #2
0
 public SectorHeader()
 {
     _sector = new _SectorHeader();
 }