> ## 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

> يفك ضغط raw LZ4 block bytes باستخدام LZ4 block decompression ويعيد raw decompressed bytes كسلسلة Lua.

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

  ## أسماء بديلة

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

  ## الوسائط

  <ParamField path={"data"} type={"string"} required>
    Raw compressed bytes التي يتم تمريرها إلى LZ4 block decompression.
  </ParamField>

  <ParamField path={"originalSize"} type={"number"}>
    Output buffer size التي يتم تمريرها كـ dstCapacity. عند استخدام ناتج lz4compress، مرر طول bytes الأصلي غير المضغوط؛ عند حذفه، يتم استخدام طول الإدخال المضغوط.
  </ParamField>

  ## القيم الراجعة

  <ResponseField name={"decompressed"} type={"string"}>
    Raw decompressed bytes كسلسلة Lua. يمكن أن تكون المخرجات أقصر من originalSize.
  </ResponseField>

  ## مثال

  فك ضغط LZ4 bytes بتمرير الحجم الأصلي غير المضغوط.

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

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