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

            dr = (_DirectoryRecord)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_DirectoryRecord));
            handle.Free();
        }
Esempio n. 2
0
 public DirectoryRecord()
 {
     dr       = new _DirectoryRecord();
     children = new List <DirectoryRecord>();
 }
Esempio n. 3
0
 public DirectoryRecord(_DirectoryRecord record)
 {
     dr = record;
 }
Esempio n. 4
0
 public DirectoryRecord()
 {
     dr = new _DirectoryRecord();
 }