@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<Byte>!, offset: Int)

Public properties

Array<Byte>!

The array containing the allocated space.

Int

The offset of the allocated space in data.

Public constructors

Allocation

Allocation(data: ByteArray<Byte>!, offset: Int)
Parameters
data: ByteArray<Byte>!

The array containing the allocated space.

offset: Int

The offset of the allocated space in data.

Public properties

data

val data: Array<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 offset: Int

The offset of the allocated space in data.