mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 07:37:10 +00:00
Fix warnings from nullabilty
This commit is contained in:
@@ -9,11 +9,19 @@ namespace SabreTools.Models.Compression.MSZIP
|
||||
/// <summary>
|
||||
/// Huffman code lengths for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public int[] LiteralLengths;
|
||||
#else
|
||||
public int[]? LiteralLengths;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Huffman distance codes for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public int[] DistanceCodes;
|
||||
#else
|
||||
public int[]? DistanceCodes;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,11 @@ namespace SabreTools.Models.Compression.MSZIP
|
||||
/// <summary>
|
||||
/// Huffman code lengths for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public uint[] LiteralLengths
|
||||
#else
|
||||
public uint[]? LiteralLengths
|
||||
#endif
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -52,7 +56,11 @@ namespace SabreTools.Models.Compression.MSZIP
|
||||
/// <summary>
|
||||
/// Huffman distance codes for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public uint[] DistanceCodes
|
||||
#else
|
||||
public uint[]? DistanceCodes
|
||||
#endif
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -82,12 +90,20 @@ namespace SabreTools.Models.Compression.MSZIP
|
||||
/// <summary>
|
||||
/// Huffman code lengths for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
private uint[] _literalLengths = null;
|
||||
#else
|
||||
private uint[]? _literalLengths = null;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Huffman distance codes for the literal / length alphabet
|
||||
/// </summary>
|
||||
#if NET48
|
||||
private uint[] _distanceCodes = null;
|
||||
#else
|
||||
private uint[]? _distanceCodes = null;
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user