Package overrungl

Class Struct

All Implemented Interfaces:
Addressable
Direct Known Subclasses:
DrawArraysIndirectCommand, DrawElementsIndirectCommand, GLFWGamepadState, GLFWGammaRamp, GLFWImage, GLFWVidMode, NFDEnumerator, NFDNFilterItem, NFDU8FilterItem, STBIIoCallbacks

public class Struct extends Pointer
Struct relies on preview features of the Java platform:
Programs can only use Struct when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The C struct wrapper.
Since:
0.1.0
Author:
squid233
  • Field Details

    • layout

      protected MemoryLayoutPREVIEW layout
      The memory layout of this struct.

      The memory layout can be modified in subclasses to load lazily.

  • Constructor Details

  • Method Details

    • segment

      public MemorySegmentPREVIEW segment()
      Gets as a native segment.
      Returns:
      the memory segment.
      See Also:
    • layout

      public MemoryLayoutPREVIEW layout()
      Returns the layout of this struct.
      Returns:
      the layout of this struct
    • sizeof

      public long sizeof()
      Returns the elements size of this struct in bytes.
      Returns:
      the elements size of this struct in bytes