Cleanup some warnings.
This commit is contained in:
@@ -217,9 +217,9 @@ namespace Framework.IO
|
||||
public ct_data[] dyn_dtree=new ct_data[2*D_CODES+1]; // distance tree
|
||||
public ct_data[] bl_tree=new ct_data[2*BL_CODES+1]; // Huffman tree for bit lengths
|
||||
|
||||
public tree_desc l_desc=new tree_desc(); // desc. for literal tree
|
||||
public tree_desc d_desc=new tree_desc(); // desc. for distance tree
|
||||
public tree_desc bl_desc=new tree_desc(); // desc. for bit length tree
|
||||
public tree_desc l_desc=new(); // desc. for literal tree
|
||||
public tree_desc d_desc=new(); // desc. for distance tree
|
||||
public tree_desc bl_desc=new(); // desc. for bit length tree
|
||||
|
||||
// number of codes at each bit length for an optimal tree
|
||||
public ushort[] bl_count=new ushort[MAX_BITS+1];
|
||||
|
||||
@@ -240,9 +240,9 @@ namespace Framework.IO
|
||||
}
|
||||
}
|
||||
|
||||
private static readonly static_tree_desc static_l_desc=new static_tree_desc(static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS);
|
||||
private static readonly static_tree_desc static_d_desc=new static_tree_desc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);
|
||||
private static readonly static_tree_desc static_bl_desc=new static_tree_desc(null, extra_blbits, 0, BL_CODES, MAX_BL_BITS);
|
||||
private static readonly static_tree_desc static_l_desc=new(static_ltree, extra_lbits, LITERALS+1, L_CODES, MAX_BITS);
|
||||
private static readonly static_tree_desc static_d_desc=new(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);
|
||||
private static readonly static_tree_desc static_bl_desc=new(null, extra_blbits, 0, BL_CODES, MAX_BL_BITS);
|
||||
|
||||
// ===========================================================================
|
||||
// Local (static) routines in this file.
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Framework.IO
|
||||
{
|
||||
public static byte[] Compress(byte[] data)
|
||||
{
|
||||
ByteBuffer buffer = new ByteBuffer();
|
||||
ByteBuffer buffer = new();
|
||||
buffer.WriteUInt8(0x78);
|
||||
buffer.WriteUInt8(0x9c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user