MemoryFile.WriteBytes(Byte[], Int32, Int32, Int32) Method

Definition

Write bytes to the memory file.

[Android.Runtime.Register("writeBytes", "([BIII)V", "GetWriteBytes_arrayBIIIHandler")]
public virtual void WriteBytes (byte[]? buffer, int srcOffset, int destOffset, int count);
[<Android.Runtime.Register("writeBytes", "([BIII)V", "GetWriteBytes_arrayBIIIHandler")>]
abstract member WriteBytes : byte[] * int * int * int -> unit
override this.WriteBytes : byte[] * int * int * int -> unit

Parameters

buffer
Byte[]

byte array to write bytes from.

srcOffset
Int32

offset into the byte array buffer to write from.

destOffset
Int32

offset into the memory file to write to.

count
Int32

number of bytes to write.

Attributes

Exceptions

if the memory file has been purged or deactivated.

Remarks

Write bytes to the memory file. Will throw an IOException if the file has been purged.

Java documentation for android.os.MemoryFile.writeBytes(byte[], int, int, 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