Deflater.SetInput 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
SetInput(ByteBuffer) |
Sets input data for compression. |
SetInput(Byte[]) |
Sets input data for compression. |
SetInput(Byte[], Int32, Int32) |
Sets input data for compression. |
SetInput(ByteBuffer)
Sets input data for compression.
[Android.Runtime.Register("setInput", "(Ljava/nio/ByteBuffer;)V", "GetSetInput_Ljava_nio_ByteBuffer_Handler", ApiSince=35)]
public virtual void SetInput (Java.Nio.ByteBuffer? input);
[<Android.Runtime.Register("setInput", "(Ljava/nio/ByteBuffer;)V", "GetSetInput_Ljava_nio_ByteBuffer_Handler", ApiSince=35)>]
abstract member SetInput : Java.Nio.ByteBuffer -> unit
override this.SetInput : Java.Nio.ByteBuffer -> unit
Parameters
- input
- ByteBuffer
the input data bytes
- Attributes
Remarks
Sets input data for compression.
One of the setInput()
methods should be called whenever needsInput()
returns true indicating that more input data is required.
The given buffer's position will be advanced as deflate operations are performed, up to the buffer's limit. The input buffer may be modified (refilled) between deflate operations; doing so is equivalent to creating a new buffer and setting it with this method.
Modifying the input buffer's contents, position, or limit concurrently with an deflate operation will result in undefined behavior, which may include incorrect operation results or operation failure.
Added in 11.
Java documentation for java.util.zip.Deflater.setInput(java.nio.ByteBuffer)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetInput(Byte[])
Sets input data for compression.
[Android.Runtime.Register("setInput", "([B)V", "GetSetInput_arrayBHandler")]
public virtual void SetInput (byte[]? b);
[Android.Runtime.Register("setInput", "([B)V", "GetSetInput_arrayBHandler")]
public virtual void SetInput (byte[]? input);
[<Android.Runtime.Register("setInput", "([B)V", "GetSetInput_arrayBHandler")>]
abstract member SetInput : byte[] -> unit
override this.SetInput : byte[] -> unit
Parameters
- binput
- Byte[]
the input data bytes
- Attributes
Remarks
Sets input data for compression.
One of the setInput()
methods should be called whenever needsInput()
returns true indicating that more input data is required.
Java documentation for java.util.zip.Deflater.setInput(byte[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetInput(Byte[], Int32, Int32)
Sets input data for compression.
[Android.Runtime.Register("setInput", "([BII)V", "GetSetInput_arrayBIIHandler")]
public virtual void SetInput (byte[]? b, int off, int len);
[Android.Runtime.Register("setInput", "([BII)V", "GetSetInput_arrayBIIHandler")]
public virtual void SetInput (byte[]? input, int off, int len);
[<Android.Runtime.Register("setInput", "([BII)V", "GetSetInput_arrayBIIHandler")>]
abstract member SetInput : byte[] * int * int -> unit
override this.SetInput : byte[] * int * int -> unit
Parameters
- binput
- Byte[]
the input data bytes
- off
- Int32
the start offset of the data
- len
- Int32
the length of the data
- Attributes
Remarks
Sets input data for compression.
One of the setInput()
methods should be called whenever needsInput()
returns true indicating that more input data is required.
Java documentation for java.util.zip.Deflater.setInput(byte[], int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.