private void SetHeaderBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); header = (PlateHeader)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(PlateHeader)); handle.Free(); }
private void SetHeaderBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); header = (PlateHeader)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(PlateHeader)); handle.Free(); }