DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Implementation

Mercurial (379a2370cd89)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "msgCore.h"
#include "nsIOutputStream.h"
#include "nsAutoPtr.h"
#include "nsCOMPtr.h"
#include "zlib.h"

class NS_MSG_BASE nsMsgCompressOStream : public nsIOutputStream
{
public:
  nsMsgCompressOStream();
  ~nsMsgCompressOStream();

  NS_DECL_ISUPPORTS

  NS_DECL_NSIOUTPUTSTREAM

  nsresult InitOutputStream(nsIOutputStream *rawStream);

protected:
  nsCOMPtr<nsIOutputStream> m_oStream;
  nsAutoArrayPtr<char> m_zbuf;
  z_stream m_zstream;
};