// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2015, SIL International, All rights reserved. #include <cassert> #include "inc/Decompressor.h" #include "inc/Compression.h" usingnamespacelz4; namespace { inline u32 read_literal(u8 const * &s, u8 const * const e, u32 l) { … } bool read_sequence(u8 const * &src, u8 const * const end, u8 const * &literal, u32 & literal_len, u32 & match_len, u32 & match_dist) { … } } int lz4::decompress(void const *in, size_t in_size, void *out, size_t out_size) { … }