語言

MessageDigest.Update 方法

定義

多載

名稱 Description
Update(SByte)

使用指定的位元組更新摘要。

Update(ByteBuffer)

使用指定的 ByteBuffer 更新摘要。

Update(Byte[])

使用指定的位元組陣列更新摘要。

Update(Byte[], Int32, Int32)

從指定的偏移量開始,使用指定的位元組陣列更新摘要。

Update(SByte)

使用指定的位元組更新摘要。

[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

參數

input
SByte

更新摘要的位元組。

屬性

備註

使用指定的位元組更新摘要。

Java 文件 java.security.MessageDigest.update(byte)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

另請參閱

適用於

Update(ByteBuffer)

使用指定的 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

參數

input
ByteBuffer

位元緩衝區

屬性

備註

使用指定的 ByteBuffer 更新摘要。 摘要是從 開始input.position()的input.remaining()位元組更新的。 返回時,緩衝區的位置將等於其極限;其極限不會改變。

已在1.5中新增。

Java 文件 java.security.MessageDigest.update(java.nio.ByteBuffer)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Update(Byte[])

使用指定的位元組陣列更新摘要。

[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

參數

input
Byte[]

位元組陣列。

屬性

例外狀況

若 input 為 null

備註

使用指定的位元組陣列更新摘要。

Java 文件 java.security.MessageDigest.update(byte[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Update(Byte[], Int32, Int32)

從指定的偏移量開始,使用指定的位元組陣列更新摘要。

[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

參數

input
Byte[]

位元組陣列。

offset
Int32

從位元組陣列中起始的偏移量。

len
Int32

從 開始的 offset位元組數。

屬性

例外狀況

若 offsetlen 或 在 方面不成立 input

備註

從指定的偏移量開始,使用指定的位元組陣列更新摘要。

Java 文件 java.security.MessageDigest.update(byte[], int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於