From d4ccf733401fbe48311f0cfcacfb60362bb5d626 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 31 Jul 2020 16:47:05 -0700 Subject: [PATCH] Embed FAST_ENCODER_TREE_STRUCTURE_DATA --- src/SharpCompress/Compressors/Deflate64/FastEncoderStatus.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SharpCompress/Compressors/Deflate64/FastEncoderStatus.cs b/src/SharpCompress/Compressors/Deflate64/FastEncoderStatus.cs index 19c22c94..f5f26276 100644 --- a/src/SharpCompress/Compressors/Deflate64/FastEncoderStatus.cs +++ b/src/SharpCompress/Compressors/Deflate64/FastEncoderStatus.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using System.Diagnostics; namespace SharpCompress.Compressors.Deflate64 @@ -10,7 +11,7 @@ namespace SharpCompress.Compressors.Deflate64 { // static information for encoding, DO NOT MODIFY - internal static readonly byte[] FAST_ENCODER_TREE_STRUCTURE_DATA = + internal static ReadOnlySpan FAST_ENCODER_TREE_STRUCTURE_DATA => new byte[] { 0xec,0xbd,0x07,0x60,0x1c,0x49,0x96,0x25,0x26,0x2f,0x6d,0xca, 0x7b,0x7f,0x4a,0xf5,0x4a,0xd7,0xe0,0x74,0xa1,0x08,0x80,0x60, @@ -23,7 +24,7 @@ namespace SharpCompress.Compressors.Deflate64 0x1f,0x3f }; - internal static readonly byte[] B_FINAL_FAST_ENCODER_TREE_STRUCTURE_DATA = + internal static ReadOnlySpan B_FINAL_FAST_ENCODER_TREE_STRUCTURE_DATA => new byte[] { 0xed,0xbd,0x07,0x60,0x1c,0x49,0x96,0x25,0x26,0x2f,0x6d,0xca, 0x7b,0x7f,0x4a,0xf5,0x4a,0xd7,0xe0,0x74,0xa1,0x08,0x80,0x60,