CompressionStream.Write Method

Definition

Overloads

Name Description
Write(ReadOnlySpan<Byte>)
Write(Byte[], Int32, Int32)

Writes compressed bytes to the underlying stream from the specified byte array.

Write(ReadOnlySpan<Byte>)

public override void Write(ReadOnlySpan<byte> source);
override this.Write : ReadOnlySpan<byte> -> unit

Parameters

source
ReadOnlySpan<Byte>

Applies to

Write(Byte[], Int32, Int32)

Writes compressed bytes to the underlying stream from the specified byte array.

public override void Write(byte[] array, int offset, int count);
override this.Write : byte[] * int * int -> unit

Parameters

array
Byte[]

The buffer that contains the data to compress.

offset
Int32

The byte offset in array from which the bytes will be read.

count
Int32

The maximum number of bytes to write.

Applies to