25 #include "common/scummsys.h" 26 #include "common/types.h" 39 class SeekableReadStream;
61 bool inflateZlib(byte *dst,
unsigned long *dstLen,
const byte *src,
unsigned long srcLen);
62 static inline bool inflateZlib(byte *dst,
unsigned long dstLen,
const byte *src,
unsigned long srcLen) {
88 bool inflateZlibHeaderless(byte *dst, uint *dstLen,
const byte *src, uint srcLen,
const byte *dict =
nullptr, uint dictLen = 0);
89 static inline bool inflateZlibHeaderless(byte *dst, uint dstLen,
const byte *src, uint srcLen,
const byte *dict =
nullptr, uint dictLen = 0) {
110 bool inflateClickteam(byte *dst, uint *dstLen,
const byte *src, uint srcLen);
111 static inline bool inflateClickteam(byte *dst, uint dstLen,
const byte *src, uint srcLen) {
137 DisposeAfterUse::Flag disposeParent = DisposeAfterUse::YES, uint64 knownSize = 0);
151 DisposeAfterUse::Flag disposeParent = DisposeAfterUse::YES, uint64 knownSize = 0,
152 const byte *dict =
nullptr, uint dictLen = 0);
169 DisposeAfterUse::Flag disposeParent = DisposeAfterUse::YES, uint64 knownSize = 0);
SeekableReadStream * wrapCompressedReadStream(SeekableReadStream *toBeWrapped, DisposeAfterUse::Flag disposeParent=DisposeAfterUse::YES, uint64 knownSize=0)
SeekableReadStream * wrapDeflateReadStream(SeekableReadStream *toBeWrapped, DisposeAfterUse::Flag disposeParent=DisposeAfterUse::YES, uint64 knownSize=0, const byte *dict=nullptr, uint dictLen=0)
WriteStream * wrapCompressedWriteStream(WriteStream *toBeWrapped)
bool inflateClickteam(byte *dst, uint *dstLen, const byte *src, uint srcLen)
Definition: algorithm.h:29
bool inflateZlibHeaderless(byte *dst, uint *dstLen, const byte *src, uint srcLen, const byte *dict=nullptr, uint dictLen=0)
SeekableReadStream * wrapClickteamReadStream(SeekableReadStream *toBeWrapped, DisposeAfterUse::Flag disposeParent=DisposeAfterUse::YES, uint64 knownSize=0)
bool inflateZlib(byte *dst, unsigned long *dstLen, const byte *src, unsigned long srcLen)