> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# lz4decompress

> Mendekompresi raw LZ4 block bytes dengan LZ4 block decompression dan mengembalikan raw decompressed bytes sebagai string Lua.

<div className="real-function-page">
  ```lua theme={null}
  lz4decompress(data: string, originalSize?: number): string
  ```

  ## Alias

  * `crypt.lz4decompress`
  * `crypt.lz4.decompress`
  * `lz4.decompress`

  ## Argumen

  <ParamField path={"data"} type={"string"} required>
    Raw compressed bytes yang diteruskan ke LZ4 block decompression.
  </ParamField>

  <ParamField path={"originalSize"} type={"number"}>
    Output buffer size yang diteruskan sebagai dstCapacity. Untuk output lz4compress, berikan panjang byte asli yang belum dikompresi; jika dihilangkan, panjang input terkompresi digunakan.
  </ParamField>

  ## Return

  <ResponseField name={"decompressed"} type={"string"}>
    Raw decompressed bytes yang dikembalikan sebagai string Lua. Output dapat lebih pendek dari originalSize.
  </ResponseField>

  ## Contoh

  Dekompresi LZ4 bytes dengan fieldikan ukuran asli yang belum dikompresi.

  ```lua theme={null}
  local source = "Real Docs"
  local compressed = lz4compress(source)
  local decompressed = lz4decompress(compressed, #source)

  print(decompressed)
  print(decompressed == source)
  ```
</div>
