@UnstableApi
public final 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 fields

final byte[]

The array containing the allocated space.

final int

The offset of the allocated space in data.

Public constructors

Allocation(byte[] data, int offset)

Public fields

data

public final byte[] data

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

public final int offset

The offset of the allocated space in data.

Public constructors

Allocation

public Allocation(byte[] data, int offset)
Parameters
byte[] data

The array containing the allocated space.

int offset

The offset of the allocated space in data.