Пример #1
0
 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;
     }
 }
Пример #2
0
 internal Stream CreateStream(Guid id)
 {
     return(physicalStore.CreateStream(id));
 }