jlz4.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef JLZ4_INCL
  14. #define JLZ4_INCL
  15. #include "jlzw.hpp"
  16. #define LZ4COMPRESSEDFILEBLOCKSIZE (0x100000)
  17. extern jlib_decl ICompressor *createLZ4Compressor();
  18. extern jlib_decl IExpander *createLZ4Expander();
  19. extern jlib_decl void LZ4CompressToBuffer(MemoryBuffer & out, size32_t len, const void * src);
  20. extern jlib_decl void LZ4DecompressToBuffer(MemoryBuffer & out, const void * src);
  21. extern jlib_decl void LZ4DecompressToBuffer(MemoryBuffer & out, MemoryBuffer & in);
  22. extern jlib_decl void LZ4DecompressToAttr(MemoryAttr & out, const void * src);
  23. extern jlib_decl void LZ4DecompressToBuffer(MemoryAttr & out, MemoryBuffer & in);
  24. extern jlib_decl IFileIOStream *createLZ4StreamRead(IFileIO *base);
  25. extern jlib_decl IFileIOStream *createLZ4StreamWrite(IFileIO *base);
  26. #endif