# SVC_UnpackBits

## Syntax

  `#include <nitro/os/common/systemCall.h>`
  `void SVC_UnpackBits( const void* srcp, void* destp, MIUnpackBitsParam *paramp );`

## Arguments

srcp | Source address where compressed data is stored.
destp | Destination address for decompression.
paramp | `MIUnpackBitsParam` structure address.

## Return Values

None.

## Description

This function decompresses data that was packed as 0 fixed bits. Please match the destination address `dest` to the 4-byte boundary.

paramp is the `MIUnpackBitsParam` structure data address for MI. The `MIUnpackBitsParam` structure comprises the following:
·Source data byte count (u16)
·Bit count for the "1" source data (u16:8)
·Bit count for the "1" destination data (u16:8)
·The offset to be added to the source data (u32:31)
·Flag to indicate whether to add an offset to the "0" data. (u32:1)

## See Also

`MI_UnpackBits, SVC_UncompressLZ*, SVC_UncompressHuffmanFromDevice, SVC_UncompressRL*`

## Revision History

2004/07/22 Initial version.

CONFIDENTIAL