BsCompression.h 843 B

12345678910111213141516171819202122232425
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisitesUtil.h"
  5. namespace bs
  6. {
  7. /** @addtogroup General
  8. * @{
  9. */
  10. /** Performs generic compression and decompression on raw data. */
  11. class BS_UTILITY_EXPORT Compression
  12. {
  13. public:
  14. /** Compresses the data from the provided data stream and outputs the new stream with compressed data. */
  15. static SPtr<MemoryDataStream> compress(SPtr<DataStream>& input);
  16. /** Decompresses the data from the provided data stream and outputs the new stream with decompressed data. */
  17. static SPtr<MemoryDataStream> decompress(SPtr<DataStream>& input);
  18. };
  19. /** @} */
  20. }