1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef _JBIG2_MODULE_H_ 8 #define _JBIG2_MODULE_H_ 9 #include "JBig2_Define.h" 10 class CJBig2_Module 11 { 12 public: 13 14 virtual void *JBig2_Malloc(FX_DWORD dwSize) = 0; 15 16 virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) = 0; 17 18 virtual void *JBig2_Malloc3(FX_DWORD num, FX_DWORD dwSize, FX_DWORD dwSize2) = 0; 19 20 virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize) = 0; 21 22 virtual void JBig2_Free(FX_LPVOID pMem) = 0; 23 24 virtual void JBig2_Assert(FX_INT32 nExpression) {}; 25 26 virtual void JBig2_Error(FX_LPCSTR format, ...) {}; 27 28 virtual void JBig2_Warn(FX_LPCSTR format, ...) {}; 29 30 virtual void JBig2_Log(FX_LPCSTR format, ...) {}; 31 }; 32 #endif 33