-
public class AllocatorConfig
Config class used when creating a com.google.android.exoplayer2.upstream.Allocator instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
AllocatorConfig.Builder
The AllocatorConfig Builder.
-
Field Summary
Fields Modifier and Type Field Description private final int
individualAllocationSize
private final int
initialAllocationCount
-
Method Summary
Modifier and Type Method Description int
getIndividualAllocationSize()
Gets the length of each individual Allocation. int
getInitialAllocationCount()
Gets the number of allocations to create up front. boolean
isTrimOnReset()
Whether memory is freed when the allocator is reset. -
-
Method Detail
-
getIndividualAllocationSize
int getIndividualAllocationSize()
Gets the length of each individual Allocation.
-
getInitialAllocationCount
int getInitialAllocationCount()
Gets the number of allocations to create up front.
-
isTrimOnReset
boolean isTrimOnReset()
Whether memory is freed when the allocator is reset. Should be true unlessthe allocator will be re-used by multiple player instances.
-
-
-
-