Пример #1
0
        public void SetParentSize(EntryStore entryStore, ulong size)
        {
            Entry[] parentBlock;
            var     parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock);

            parentBlock[parentEntryIndex].Size = size;
        }
Пример #2
0
        public string GetParentPath(EntryStore entryStore)
        {
            Entry[] parentBlock;
            var     parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock);

            return(parentBlock[parentEntryIndex].FullPath);
        }
Пример #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();
        }
Пример #4
0
 public string GetFullPath(EntryStore entryStore)
 {
     return(Path.Combine(GetParentPath(entryStore), Name));
 }