一款简单易用的基础网络通讯组件库。

GZipCompress(Stream, Byte, Int32, Int32) 方法

压缩数据

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public static void Compress(
	Stream stream,
	byte[] buffer,
	int offset,
	int length
)

参数

stream  Stream

[缺少 "M:TouchSocket.Core.GZip.Compress(System.IO.Stream,System.Byte[],System.Int32,System.Int32)" 的 <param name="stream"/> 文档]

buffer  Byte

[缺少 "M:TouchSocket.Core.GZip.Compress(System.IO.Stream,System.Byte[],System.Int32,System.Int32)" 的 <param name="buffer"/> 文档]

offset  Int32

[缺少 "M:TouchSocket.Core.GZip.Compress(System.IO.Stream,System.Byte[],System.Int32,System.Int32)" 的 <param name="offset"/> 文档]

length  Int32

[缺少 "M:TouchSocket.Core.GZip.Compress(System.IO.Stream,System.Byte[],System.Int32,System.Int32)" 的 <param name="length"/> 文档]

返回值

参见