共用方式為


Inflater.SetInput Method

Definition

Overloads

SetInput(ByteBuffer)

Sets input data for decompression.

SetInput(Byte[])

Sets input data for decompression.

SetInput(Byte[], Int32, Int32)

Sets input data for decompression.

SetInput(ByteBuffer)

Sets input data for decompression.

[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 decompression.

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 inflate operations are performed, up to the buffer's limit. The input buffer may be modified (refilled) between inflate 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 inflate operation will result in undefined behavior, which may include incorrect operation results or operation failure.

Added in 11.

Java documentation for java.util.zip.Inflater.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 decompression.

[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 decompression.

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.Inflater.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 decompression.

[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 input data

len
Int32

the length of the input data

Attributes

Remarks

Sets input data for decompression.

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.Inflater.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.

Applies to