summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/jbig2/JBig2_Module.h
blob: bb06c8a0b33596e14d11ff6681d33bc444046ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef _JBIG2_MODULE_H_
#define _JBIG2_MODULE_H_
#include "JBig2_Define.h"
class CJBig2_Module {
 public:
  virtual ~CJBig2_Module() {}

  virtual void* JBig2_Malloc(FX_DWORD dwSize) = 0;

  virtual void* JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) = 0;

  virtual void* JBig2_Malloc3(FX_DWORD num,
                              FX_DWORD dwSize,
                              FX_DWORD dwSize2) = 0;

  virtual void* JBig2_Realloc(void* pMem, FX_DWORD dwSize) = 0;

  virtual void JBig2_Free(void* pMem) = 0;
};
#endif