// Token: 0x0600198D RID: 6541 RVA: 0x000956D8 File Offset: 0x000938D8
        internal Stream GetfilteredStream(HttpContext httpContext, Stream inputStream, Charset charset, BlockStatus blockStatus)
        {
            BufferPool bufferPool = BufferPoolCollection.AutoCleanupCollection.Acquire(AttachmentUtility.CopyBufferSize);

            byte[] array  = bufferPool.Acquire();
            Stream stream = new MemoryStream();

            try
            {
                using (Stream filteredStream = AttachmentUtility.GetFilteredStream(httpContext, inputStream, charset, blockStatus))
                {
                    try
                    {
                        int count;
                        while ((count = filteredStream.Read(array, 0, array.Length)) > 0)
                        {
                            stream.Write(array, 0, count);
                        }
                    }
                    finally
                    {
                        if (array != null)
                        {
                            bufferPool.Release(array);
                        }
                    }
                }
                stream.Seek(0L, SeekOrigin.Begin);
            }
            catch (Exception ex)
            {
                ExTraceGlobals.AttachmentHandlingTracer.TraceError <string>((long)this.GetHashCode(), "ZipEntryAttachment.GetfilteredStream: Safe HTML converter failed with exception {0}", ex.Message);
                stream = new MemoryStream();
            }
            return(stream);
        }
 // Token: 0x0600198C RID: 6540 RVA: 0x000956CA File Offset: 0x000938CA
 public Stream GetfilteredStreamForCompression(HttpContext httpContext, Stream stream, Charset charset, BlockStatus blockStatus)
 {
     return(AttachmentUtility.GetFilteredStream(httpContext, stream, charset, blockStatus));
 }