@UnstableApi
class Allocation


An allocation within a byte array.

The allocation's length is obtained by calling getIndividualAllocationLength on the Allocator from which it was obtained.

Summary

Public constructors

Allocation(data: ByteArray!, offset: Int)

Public properties

ByteArray<Byte>!

The array containing the allocated space.

Int

The offset of the allocated space in data.

Public constructors

Allocation

Allocation(data: ByteArray!, offset: Int)
Parameters
data: ByteArray!

The array containing the allocated space.

offset: Int

The offset of the allocated space in data.

Public properties

data

val dataByteArray<Byte>!

The array containing the allocated space. The allocated space might not be at the start of the array, and so offset must be used when indexing into it.

offset

val offsetInt

The offset of the allocated space in data.