private void StoreContent()
{
if(this.dataOut != null)
{
if(this.Compressed == true)
{
MemoryStream final = new MemoryStream();
EndianBinaryWriter writer = new EndianBinaryWriter(final);
this.dataOut.Close();
byte[] compressed = this.outputBuffer.ToArray();
writer.Write(this.length);
writer.Write(compressed, 0, compressed.Length);
writer.Close();
base.Content = final.ToArray();
}
else
{
this.dataOut.Close();
base.Content = outputBuffer.ToArray();
}
this.dataOut = null;
this.outputBuffer = null;
}
}