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

            _volumeDescriptor = (_VolumeDescriptor)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_VolumeDescriptor));
            handle.Free();
        }
예제 #2
0
 public void ReadByte(byte[] data)
 {
     GCHandle handle = GCHandle.Alloc(data,GCHandleType.Pinned);
     _volumeDescriptor = (_VolumeDescriptor)Marshal.PtrToStructure(handle.AddrOfPinnedObject(),typeof(_VolumeDescriptor));
     handle.Free();
 }
예제 #3
0
 public VolumeDescriptor()
 {
     _volumeDescriptor = new _VolumeDescriptor();
 }
예제 #4
0
 public VolumeDescriptor()
 {
     _volumeDescriptor = new _VolumeDescriptor();
 }