public void ReadBytes(byte[] data) { GCHandle handle = GCHandle.Alloc(data, GCHandleType.Pinned); dr = (_DirectoryRecord)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(_DirectoryRecord)); handle.Free(); }
public DirectoryRecord() { dr = new _DirectoryRecord(); children = new List <DirectoryRecord>(); }
public DirectoryRecord(_DirectoryRecord record) { dr = record; }
public DirectoryRecord() { dr = new _DirectoryRecord(); }