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

◆ ReleaseHandle() [2/2]

override bool System.IO.Compression.ZLibNative.ZLibStreamHandle.ReleaseHandle ( )
inlineprotected

Definition at line 110 of file ZLibNative.cs.

111 {
112 return InitializationState switch
113 {
114 State.NotInitialized => true,
115 State.InitializedForDeflate => DeflateEnd() == ErrorCode.Ok,
116 State.InitializedForInflate => InflateEnd() == ErrorCode.Ok,
117 State.Disposed => true,
118 _ => false,
119 };
120 }

References System.IO.Compression.ZLibNative.ZLibStreamHandle.DeflateEnd(), System.IO.Compression.ZLibNative.ZLibStreamHandle.InflateEnd(), and System.IO.Compression.ZLibNative.ZLibStreamHandle.InitializationState.