Interface ChunkInfo

All Known Implementing Classes:
AdaptivePoolingAllocator.BuddyChunk, AdaptivePoolingAllocator.Chunk, AdaptivePoolingAllocator.SizeClassedChunk, PoolChunk

@UnstableApi interface ChunkInfo
Information about an allocator chunk.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The capacity of the chunk, in bytes.
    boolean
    true if the chunk contain native memory, otherwise false.
    long
    The native memory address of the chunk, if any, otherwise zero.
  • Method Details

    • capacity

      int capacity()
      The capacity of the chunk, in bytes.
    • isDirect

      boolean isDirect()
      true if the chunk contain native memory, otherwise false.
    • memoryAddress

      long memoryAddress()
      The native memory address of the chunk, if any, otherwise zero.