Class RPmallocThreadStatistics.span_use.Buffer

All Implemented Interfaces:
Iterable<RPmallocThreadStatistics.span_use>, Pointer
Enclosing class:
RPmallocThreadStatistics.span_use

public static class RPmallocThreadStatistics.span_use.Buffer extends StructBuffer<RPmallocThreadStatistics.span_use,RPmallocThreadStatistics.span_use.Buffer>
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new span_use.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by RPmallocThreadStatistics.span_use.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • current

      public long current()
      Returns:
      the value of the current field.
    • peak

      public long peak()
      Returns:
      the value of the peak field.
    • to_global

      public long to_global()
      Returns:
      the value of the to_global field.
    • from_global

      public long from_global()
      Returns:
      the value of the from_global field.
    • to_cache

      public long to_cache()
      Returns:
      the value of the to_cache field.
    • from_cache

      public long from_cache()
      Returns:
      the value of the from_cache field.
    • to_reserved

      public long to_reserved()
      Returns:
      the value of the to_reserved field.
    • from_reserved

      public long from_reserved()
      Returns:
      the value of the from_reserved field.
    • map_calls

      public long map_calls()
      Returns:
      the value of the map_calls field.