daily update on 20240508 by nitload youmu, partical added
This commit is contained in:
@@ -77,6 +77,14 @@ namespace StgSharp.Data
|
||||
}
|
||||
target = new BitArray(boolStream.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Serialize a <see cref="BitArray"/>, useful when writing
|
||||
/// a Huffman tree index dictionary to file.
|
||||
/// </summary>
|
||||
/// <param name="bits"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public static byte[] Serialize(BitArray bits)
|
||||
{
|
||||
int size = (bits.Count / 4) + 1;
|
||||
|
||||
Reference in New Issue
Block a user