BitArrayExtensionMethods

public static class BitArrayExtensionMethods
Extension methods for System.Collections.BitArray

Methods

Deflate

#Example
public static byte[] Deflate(this byte[] array)
Compress an array of bytes by deflating it.
array (byte[])Array to deflate.
Compressed data.

Inflate

#Example
public static byte[] Inflate(this byte[] array)
Decompress an array of bytes by inflating it.
array (byte[])Array to inflate.
Decompressed data.

ToString

#Example
public static string ToString(this BitArray bits, int frequency)
Count the number of times a specific string occurs in this string.
bits (BitArray)Bitarray to format.
frequency (int)Dot frequency, may not be negative.
Formatted bit-array.

ToString

#Example
public static string ToString(this BitArray bits, string zero, string one, string separator, int frequency)
Count the number of times a specific string occurs in this string.
bits (BitArray)Bitarray to format.
zero (string)The zero string.
one (string)The one string.
separator (string)Separator string.
frequency (int)Separator frequency, may not be negative.
Formatted bit-array.