Class spng_iccp.Buffer

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

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

    • Buffer

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

    • profile_name

      public ByteBuffer profile_name()
      Returns:
      a ByteBuffer view of the profile_name field.
    • profile_nameString

      public String profile_nameString()
      Returns:
      the null-terminated string stored in the profile_name field.
    • profile_len

      public long profile_len()
      Returns:
      the value of the profile_len field.
    • profile

      public ByteBuffer profile()
      Returns:
      a ByteBuffer view of the data pointed to by the profile field.
    • profile_name

      public spng_iccp.Buffer profile_name(ByteBuffer value)
      Copies the specified encoded string to the profile_name field.
    • profile

      public spng_iccp.Buffer profile(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the profile field.