Beispiel #1
0
            public override void Close()
            {
                // If we're overwriting, free any remaining blocks
                NPOIFSStream toFree = new NPOIFSStream(pStream.blockStore, nextBlock);

                toFree.Free(loopDetector);

                // Mark the end of the stream
                pStream.blockStore.SetNextBlock(prevBlock, POIFSConstants.END_OF_CHAIN);

                base.Close();
            }
Beispiel #2
0
 /**
  * Frees the underlying stream and property
  */
 internal void Free()
 {
     _stream.Free();
     _property.StartBlock = (POIFSConstants.END_OF_CHAIN);
 }