语言

Parcel.WriteBlob 方法

定义

重载

名称 说明
WriteBlob(Byte[])

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

WriteBlob(Byte[], Int32, Int32)

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

WriteBlob(Byte[])

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

[Android.Runtime.Register("writeBlob", "([B)V", "", ApiSince=33)]
public void WriteBlob(byte[]? b);
[<Android.Runtime.Register("writeBlob", "([B)V", "", ApiSince=33)>]
member this.WriteBlob : byte[] -> unit

参数

b
Byte[]

要放入包裹中的字节数。

属性

注解

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

如果 Blob 很小,则它就地存储,否则会通过匿名共享内存区域传输它。 如果希望就地发送,请使用 #writeByteArray(byte[])。

Java文档android.os.Parcel.writeBlob(byte[])。

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

适用于

WriteBlob(Byte[], Int32, Int32)

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

[Android.Runtime.Register("writeBlob", "([BII)V", "", ApiSince=33)]
public void WriteBlob(byte[]? b, int offset, int len);
[<Android.Runtime.Register("writeBlob", "([BII)V", "", ApiSince=33)>]
member this.WriteBlob : byte[] * int * int -> unit

参数

b
Byte[]

要放入包裹中的字节数。

offset
Int32

要写入的第一个字节的索引。

len
Int32

要写入的字节数。

属性

注解

根据需要将一个数据 blob 写入包裹 #dataPosition中。如果需要,数据会不断增加 #dataCapacity 。

如果 Blob 很小,则它就地存储,否则会通过匿名共享内存区域传输它。 如果希望就地发送,请使用 #writeByteArray(byte[], int, int)。

Java文档android.os.Parcel.writeBlob(byte[], int, int)。

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

适用于