Condividi tramite


Adler32.Update Method

Definition

Overloads

Update(ByteBuffer)

Updates the checksum with the bytes from the specified buffer.

Update(Byte[])

Updates the checksum with the specified array of bytes.

Update(Int32)

Updates the checksum with the specified byte (the low eight bits of the argument b).

Update(Byte[], Int32, Int32)

Updates the checksum with the specified array of bytes.

Update(ByteBuffer)

Updates the checksum with the bytes from the specified buffer.

[Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "GetUpdate_Ljava_nio_ByteBuffer_Handler", ApiSince=26)]
public virtual void Update (Java.Nio.ByteBuffer? buffer);
[<Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "GetUpdate_Ljava_nio_ByteBuffer_Handler", ApiSince=26)>]
abstract member Update : Java.Nio.ByteBuffer -> unit
override this.Update : Java.Nio.ByteBuffer -> unit

Parameters

buffer
ByteBuffer

the ByteBuffer to update the checksum with

Implements

Attributes

Remarks

Updates the checksum with the bytes from the specified buffer.

The checksum is updated with the remaining bytes in the buffer, starting at the buffer's position. Upon return, the buffer's position will be updated to its limit; its limit will not have been changed.

Added in 1.8.

Java documentation for java.util.zip.Adler32.update(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

Update(Byte[])

Updates the checksum with the specified array of bytes.

[Android.Runtime.Register("update", "([B)V", "GetUpdate_arrayBHandler")]
public virtual void Update (byte[]? b);
[<Android.Runtime.Register("update", "([B)V", "GetUpdate_arrayBHandler")>]
abstract member Update : byte[] -> unit
override this.Update : byte[] -> unit

Parameters

b
Byte[]

the byte array to update the checksum with

Implements

Attributes

Remarks

Updates the checksum with the specified array of bytes.

Java documentation for java.util.zip.Adler32.update(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

Update(Int32)

Updates the checksum with the specified byte (the low eight bits of the argument b).

[Android.Runtime.Register("update", "(I)V", "GetUpdate_IHandler")]
public virtual void Update (int b);
[<Android.Runtime.Register("update", "(I)V", "GetUpdate_IHandler")>]
abstract member Update : int -> unit
override this.Update : int -> unit

Parameters

b
Int32

the byte to update the checksum with

Implements

Attributes

Remarks

Updates the checksum with the specified byte (the low eight bits of the argument b).

Java documentation for java.util.zip.Adler32.update(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

Update(Byte[], Int32, Int32)

Updates the checksum with the specified array of bytes.

[Android.Runtime.Register("update", "([BII)V", "GetUpdate_arrayBIIHandler")]
public virtual void Update (byte[]? b, int off, int len);
[<Android.Runtime.Register("update", "([BII)V", "GetUpdate_arrayBIIHandler")>]
abstract member Update : byte[] * int * int -> unit
override this.Update : byte[] * int * int -> unit

Parameters

b
Byte[]

the byte to update the checksum with

off
Int32
len
Int32

Implements

Attributes

Remarks

Updates the checksum with the specified array of bytes.

Java documentation for java.util.zip.Adler32.update(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