共用方式為


MessageDigest.Update Method

Definition

Overloads

Update(SByte)

Updates the digest using the specified byte.

Update(ByteBuffer)

Update the digest using the specified ByteBuffer.

Update(Byte[])

Updates the digest using the specified array of bytes.

Update(Byte[], Int32, Int32)

Updates the digest using the specified array of bytes, starting at the specified offset.

Update(SByte)

Updates the digest using the specified byte.

[Android.Runtime.Register("update", "(B)V", "GetUpdate_BHandler")]
public virtual void Update (sbyte input);
[<Android.Runtime.Register("update", "(B)V", "GetUpdate_BHandler")>]
abstract member Update : sbyte -> unit
override this.Update : sbyte -> unit

Parameters

input
SByte

the byte with which to update the digest.

Attributes

Remarks

Updates the digest using the specified byte.

Java documentation for java.security.MessageDigest.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.

See also

Applies to

Update(ByteBuffer)

Update the digest using the specified ByteBuffer.

[Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "")]
public void Update (Java.Nio.ByteBuffer input);
[<Android.Runtime.Register("update", "(Ljava/nio/ByteBuffer;)V", "")>]
member this.Update : Java.Nio.ByteBuffer -> unit

Parameters

input
ByteBuffer

the ByteBuffer

Attributes

Remarks

Update the digest using the specified ByteBuffer. The digest is updated using the input.remaining() bytes starting at input.position(). Upon return, the buffer's position will be equal to its limit; its limit will not have changed.

Added in 1.5.

Java documentation for java.security.MessageDigest.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 digest using the specified array of bytes.

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

Parameters

input
Byte[]

the array of bytes.

Attributes

Exceptions

if input is null

Remarks

Updates the digest using the specified array of bytes.

Java documentation for java.security.MessageDigest.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(Byte[], Int32, Int32)

Updates the digest using the specified array of bytes, starting at the specified offset.

[Android.Runtime.Register("update", "([BII)V", "GetUpdate_arrayBIIHandler")]
public virtual void Update (byte[] input, int offset, 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

input
Byte[]

the array of bytes.

offset
Int32

the offset to start from in the array of bytes.

len
Int32

the number of bytes to use, starting at offset.

Attributes

Exceptions

if offset or len are not valid in respect to input

Remarks

Updates the digest using the specified array of bytes, starting at the specified offset.

Java documentation for java.security.MessageDigest.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