void WriteIndex() { if (indexChanged) { using (BinaryWriter writer = new BinaryWriter(multiStream.CreateStream(indexStreamId))) { writer.Write(index.Count); foreach (DictionaryItem item in index.Values) { writer.Write(item.StreamId.ToByteArray()); writer.Write(item.Position); writer.Write(item.Length); } } indexChanged = false; } }
internal Stream CreateStream(Guid id) { return(physicalStore.CreateStream(id)); }