# BitArrayExtensionMethods class

Namespace: [Grasshopper2.Extensions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.extensions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class BitArrayExtensionMethods
```

Extension methods for System.Collections.BitArray

## Methods

- [Deflate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitarrayextensionmethods/deflate.md): (static) Compress an array of bytes by deflating it.
- [Inflate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitarrayextensionmethods/inflate.md): (static) Decompress an array of bytes by inflating it.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.bitarrayextensionmethods/tostring.md): (2 overloads, static) Count the number of times a specific string occurs in this string.
