Class BGFXViewStats.Buffer

All Implemented Interfaces:
Iterable<BGFXViewStats>, Pointer
Enclosing class:
BGFXViewStats

public static class BGFXViewStats.Buffer extends StructBuffer<BGFXViewStats,BGFXViewStats.Buffer>
An array of BGFXViewStats structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new BGFXViewStats.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 BGFXViewStats.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

    • name

      public ByteBuffer name()
      Returns:
      a ByteBuffer view of the name field.
    • nameString

      public String nameString()
      Returns:
      the null-terminated string stored in the name field.
    • view

      public short view()
      Returns:
      the value of the view field.
    • cpuTimeBegin

      public long cpuTimeBegin()
      Returns:
      the value of the cpuTimeBegin field.
    • cpuTimeEnd

      public long cpuTimeEnd()
      Returns:
      the value of the cpuTimeEnd field.
    • gpuTimeBegin

      public long gpuTimeBegin()
      Returns:
      the value of the gpuTimeBegin field.
    • gpuTimeEnd

      public long gpuTimeEnd()
      Returns:
      the value of the gpuTimeEnd field.
    • gpuFrameNum

      public int gpuFrameNum()
      Returns:
      the value of the gpuFrameNum field.