Cleanup some warnings.

This commit is contained in:
hondacrx
2021-11-15 16:11:20 -05:00
parent e0f344af25
commit 032f9a55f3
70 changed files with 233 additions and 234 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ namespace Framework.IO
public string ReadCString()
{
ResetBitPos();
StringBuilder tmpString = new StringBuilder();
StringBuilder tmpString = new();
char tmpChar = readStream.ReadChar();
char tmpEndChar = Convert.ToChar(Encoding.UTF8.GetString(new byte[] { 0 }));
+1 -1
View File
@@ -263,7 +263,7 @@ namespace Framework.IO
bool Match(string pattern, out Match m)
{
Regex r = new Regex(pattern);
Regex r = new(pattern);
m = r.Match(activestring);
return m.Success;
}
+3 -3
View File
@@ -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];
+3 -3
View File
@@ -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.
+1 -1
View 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);