Class GLSLIncludeResult.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<GLSLIncludeResult>, NativeResource, Pointer
Enclosing class:
GLSLIncludeResult

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

    • Buffer

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

    • header_name

      public @Nullable ByteBuffer header_name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the header_name field.
    • header_nameString

      public @Nullable String header_nameString()
      Returns:
      the null-terminated string pointed to by the header_name field.
    • header_data

      public @Nullable ByteBuffer header_data()
      Returns:
      a ByteBuffer view of the data pointed to by the header_data field.
    • header_length

      public long header_length()
      Returns:
      the value of the header_length field.
    • header_name

      public GLSLIncludeResult.Buffer header_name(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the header_name field.
    • header_data

      public GLSLIncludeResult.Buffer header_data(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the header_data field.
    • header_length

      public GLSLIncludeResult.Buffer header_length(long value)
      Sets the specified value to the header_length field.