---
name: "Compress.uncompressBinary"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Compress.uncompressBinary"
---

# Compress.uncompressBinary(3kaya)

Uncompress a block of binary data.

## NAME

Compress::uncompressBinary - Uncompress a block of binary data.

## SYNOPSIS

**Binary uncompressBinary(** *Binary b, var Int outlen* **)**

## ARGUMENTS

**b** The block to uncompress

**outlen** The expected uncompressed length

## DESCRIPTION

Uncompress a block of binary data that has been compressed with **Compress.compressBinary (3kaya)**\
  The uncompressed block will be returned. If uncompression fails, a **Compress.UncompressionFailed (3kaya)** Exception will be thrown.

If the real uncompressed length is larger than the expected length, uncompression will fail. If it is smaller, this is wasted memory.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**Compress.compressBinary (3kaya)**

**Compress.uncompressString (3kaya)**
