public void SetParentSize(EntryStore entryStore, ulong size) { Entry[] parentBlock; var parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock); parentBlock[parentEntryIndex].Size = size; }
public string GetParentPath(EntryStore entryStore) { Entry[] parentBlock; var parentEntryIndex = entryStore.EntryIndex(Parent, out parentBlock); return(parentBlock[parentEntryIndex].FullPath); }
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(); }
public string GetFullPath(EntryStore entryStore) { return(Path.Combine(GetParentPath(entryStore), Name)); }