MessageDigest.Update 方法

定义

重载

名称 说明
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)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

另请参阅

适用于

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

属性

注解

使用指定的 ByteBuffer 更新摘要。 摘要使用从以下input.position()位置开始的input.remaining()字节进行更新。 返回后,缓冲区的位置将等于其限制;其限制不会更改。

在 1.5 中添加。

Java文档java.security.MessageDigest.update(java.nio.ByteBuffer)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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[]

字节数组。

属性

例外

if input is null

注解

使用指定的字节数组更新摘要。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于