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

◆ GetDeflateOutput()

int System.IO.Compression.Deflater.GetDeflateOutput ( byte[] outputBuffer)
inlinepackage

Definition at line 121 of file Deflater.cs.

122 {
123 try
124 {
125 ReadDeflateOutput(outputBuffer, ZLibNative.FlushCode.NoFlush, out var bytesRead);
126 return bytesRead;
127 }
128 finally
129 {
130 if (_zlibStream.AvailIn == 0)
131 {
133 }
134 }
135 }
readonly ZLibNative.ZLibStreamHandle _zlibStream
Definition Deflater.cs:7
unsafe ZLibNative.ErrorCode ReadDeflateOutput(byte[] outputBuffer, ZLibNative.FlushCode flushCode, out int bytesRead)
Definition Deflater.cs:137

References System.IO.Compression.Deflater._zlibStream, System.IO.Compression.Deflater.DeallocateInputBufferHandle(), and System.IO.Compression.Deflater.ReadDeflateOutput().

Referenced by System.IO.Compression.DeflateStream.WriteDeflaterOutput(), and System.IO.Compression.DeflateStream.WriteDeflaterOutputAsync().