Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetWindow()

void System.IO.Compression.BrotliEncoder.SetWindow ( int window)
inlinepackage

Definition at line 75 of file BrotliEncoder.cs.

76 {
78 if (_state == null || _state.IsInvalid || _state.IsClosed)
79 {
81 }
82 if (window < 10 || window > 24)
83 {
84 throw new ArgumentOutOfRangeException("window", System.SR.Format(System.SR.BrotliEncoder_Window, window, 10, 24));
85 }
86 if (global::Interop.Brotli.BrotliEncoderSetParameter(_state, BrotliEncoderParameter.LGWin, (uint)window) == global::Interop.BOOL.FALSE)
87 {
89 }
90 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string BrotliEncoder_InvalidSetParameter
Definition SR.cs:32
static string BrotliEncoder_Window
Definition SR.cs:30
Definition SR.cs:7
SafeBrotliEncoderHandle _state

References System.IO.Compression.BrotliEncoder._state, System.SR.BrotliEncoder_InvalidSetParameter, System.SR.BrotliEncoder_Window, System.IO.Compression.BrotliEncoder.EnsureNotDisposed(), System.SR.Format(), System.IO.Compression.BrotliEncoder.InitializeEncoder(), System.Runtime.InteropServices.SafeHandle.IsClosed, and Microsoft.Win32.SafeHandles.SafeBrotliEncoderHandle.IsInvalid.

Referenced by System.IO.Compression.BrotliEncoder.BrotliEncoder().