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

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