語言

Parcel.WriteBlob 方法

定義

多載

名稱 Description
WriteBlob(Byte[])

如果需要,將一塊資料寫入該區塊,且在當前 #dataPosition成長 #dataCapacity 的狀態下。

WriteBlob(Byte[], Int32, Int32)

如果需要,將一塊資料寫入該區塊,且在當前 #dataPosition成長 #dataCapacity 的狀態下。

WriteBlob(Byte[])

如果需要,將一塊資料寫入該區塊,且在當前 #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[]

要放入包裹的位元組。

屬性

備註

如果需要,將一塊資料寫入該區塊,且在當前 #dataPosition成長 #dataCapacity 的狀態下。

若 blob 較小,則會原地儲存,否則透過匿名共享記憶體區域傳輸。 如果您偏好原地傳送,請使用 #writeByteArray(byte[])。

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

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

適用於

WriteBlob(Byte[], Int32, Int32)

如果需要,將一塊資料寫入該區塊,且在當前 #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

要寫入的位元組數。

屬性

備註

如果需要,將一塊資料寫入該區塊,且在當前 #dataPosition成長 #dataCapacity 的狀態下。

若 blob 較小,則會原地儲存,否則透過匿名共享記憶體區域傳輸。 如果您偏好原地傳送,請使用 #writeByteArray(byte[], int, int)。

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

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

適用於