Ejemplo n.º 1
0
Archivo: Entry.cs Proyecto: CDEApp/CDE
        public void SetParentSize(EntryStore entryStore, ulong size)
        {
            Entry[] parentBlock;
            var     parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock);

            parentBlock[parentEntryIndex].Size = size;
        }
Ejemplo n.º 2
0
Archivo: Entry.cs Proyecto: CDEApp/CDE
        public string GetParentPath(EntryStore entryStore)
        {
            Entry[] parentBlock;
            var     parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock);

            return(parentBlock[parentEntryIndex].FullPath);
        }
Ejemplo n.º 3
0
        private readonly EntryKey _cachedEntryKey; // our key for returning enumerator state.

        public EntryEnumerator(EntryStore entryStore)
        {
            //_entryStores = new List<EntryStore> { entryStore };
            _indexStack = new Queue <int>();
            _indexStack.Enqueue(entryStore.Root.RootIndex);
            _entryStore     = entryStore;
            _cachedEntryKey = new EntryKey();
            StoresAreValid();
            Reset();
        }
Ejemplo n.º 4
0
Archivo: Entry.cs Proyecto: CDEApp/CDE
 public string GetFullPath(EntryStore entryStore)
 {
     return(Path.Combine(GetParentPath(entryStore), Name));
 }