CompressionStream.Write Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.