Class Allocation


  • @Deprecated
    public final class Allocation
    extends Object
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    An allocation within a byte array.

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

    • Field Detail

      • data

        public final byte[] data
        Deprecated.
        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
        Deprecated.
        The offset of the allocated space in data.
    • Constructor Detail

      • Allocation

        public Allocation​(byte[] data,
                          int offset)
        Deprecated.
        Parameters:
        data - The array containing the allocated space.
        offset - The offset of the allocated space in data.