Share via


IChecksum.Update Method

Definition

Overloads

Update(ByteBuffer)

Updates the current checksum with the bytes from the specified buffer.

Update(Byte[])

Updates the current checksum with the specified array of bytes.

Update(Int32)

Updates the current checksum with the specified byte.

Update(Byte[], Int32, Int32)

Updates the current checksum with the specified array of bytes.

Update(ByteBuffer)

Updates the current checksum with the bytes from the specified buffer.

[Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "GetUpdate_Ljava_nio_ByteBuffer_Handler:Java.Util.Zip.IChecksum, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void Update (Java.Nio.ByteBuffer? buffer);
[<Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "GetUpdate_Ljava_nio_ByteBuffer_Handler:Java.Util.Zip.IChecksum, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member Update : Java.Nio.ByteBuffer -> unit
override this.Update : Java.Nio.ByteBuffer -> unit

Parameters

buffer
ByteBuffer

the ByteBuffer to update the checksum with

Attributes

Remarks

Updates the current 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 9.

Java documentation for java.util.zip.Checksum.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 current checksum with the specified array of bytes.

[Android.Runtime.Register("update", "([B)V", "GetUpdate_arrayBHandler:Java.Util.Zip.IChecksum, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void Update (byte[]? b);
[<Android.Runtime.Register("update", "([B)V", "GetUpdate_arrayBHandler:Java.Util.Zip.IChecksum, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member Update : byte[] -> unit
override this.Update : byte[] -> unit

Parameters

b
Byte[]

the array of bytes to update the checksum with

Attributes

Remarks

Updates the current checksum with the specified array of bytes.

Added in 9.

Java documentation for java.util.zip.Checksum.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 current checksum with the specified byte.

[Android.Runtime.Register("update", "(I)V", "GetUpdate_IHandler:Java.Util.Zip.IChecksumInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Update (int b);
[<Android.Runtime.Register("update", "(I)V", "GetUpdate_IHandler:Java.Util.Zip.IChecksumInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Update : int -> unit

Parameters

b
Int32

the byte to update the checksum with

Attributes

Remarks

Updates the current checksum with the specified byte.

Java documentation for java.util.zip.Checksum.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 current checksum with the specified array of bytes.

[Android.Runtime.Register("update", "([BII)V", "GetUpdate_arrayBIIHandler:Java.Util.Zip.IChecksumInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Update (byte[]? b, int off, int len);
[<Android.Runtime.Register("update", "([BII)V", "GetUpdate_arrayBIIHandler:Java.Util.Zip.IChecksumInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Update : byte[] * int * int -> unit

Parameters

b
Byte[]

the byte array to update the checksum with

off
Int32

the start offset of the data

len
Int32

the number of bytes to use for the update

Attributes

Remarks

Updates the current checksum with the specified array of bytes.

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