MemoryFile.ReadBytes(Byte[], Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads bytes from the memory file.
[Android.Runtime.Register("readBytes", "([BIII)I", "GetReadBytes_arrayBIIIHandler")]
public virtual int ReadBytes (byte[]? buffer, int srcOffset, int destOffset, int count);
[<Android.Runtime.Register("readBytes", "([BIII)I", "GetReadBytes_arrayBIIIHandler")>]
abstract member ReadBytes : byte[] * int * int * int -> int
override this.ReadBytes : byte[] * int * int * int -> int
Parameters
- buffer
- Byte[]
byte array to read bytes into.
- srcOffset
- Int32
offset into the memory file to read from.
- destOffset
- Int32
offset into the byte array buffer to read into.
- count
- Int32
number of bytes to read.
Returns
number of bytes read.
- Attributes
Exceptions
if the memory file has been purged or deactivated.
Remarks
Reads bytes from the memory file. Will throw an IOException if the file has been purged.
Java documentation for android.os.MemoryFile.readBytes(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.