Compartilhar via


BackupDataOutput.WriteEntityData(Byte[], Int32) Method

Definition

Write a chunk of data under the current entity to the backup transport.

[Android.Runtime.Register("writeEntityData", "([BI)I", "GetWriteEntityData_arrayBIHandler")]
public virtual int WriteEntityData (byte[]? data, int size);
[<Android.Runtime.Register("writeEntityData", "([BI)I", "GetWriteEntityData_arrayBIHandler")>]
abstract member WriteEntityData : byte[] * int -> int
override this.WriteEntityData : byte[] * int -> int

Parameters

data
Byte[]

A raw data buffer to send

size
Int32

The number of bytes to be sent in this chunk

Returns

the number of bytes written

Attributes

Exceptions

if the write failed

Remarks

Write a chunk of data under the current entity to the backup transport.

Java documentation for android.app.backup.BackupDataOutput.writeEntityData(byte[], 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