Module notzed.zcl
Package au.notzed.zcl

Class CLProperty.TagValue

java.lang.Object
au.notzed.zcl.CLProperty.TagValue
All Implemented Interfaces:
CLProperty
Direct Known Subclasses:
CLContextProperty.TagValue, CLDeviceProperty.TagValue, CLPipeProperty.TagValue, CLQueueProperty.TagValue, CLSamplerProperty.TagValue
Enclosing interface:
CLProperty

public static class CLProperty.TagValue
extends java.lang.Object
implements CLProperty
A simple tag/value property type.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface au.notzed.zcl.CLProperty

    CLProperty.TagValue
  • Constructor Summary

    Constructors 
    Constructor Description
    TagValue​(long tag, long value)  
  • Method Summary

    Modifier and Type Method Description
    int getSize()  
    int toInt​(jdk.incubator.foreign.MemoryAddress dst, int o)
    Encode this property as an integer array.
    int toLong​(jdk.incubator.foreign.MemoryAddress dst, int o)
    Encode this property as a long poke.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TagValue

      public TagValue​(long tag, long value)
  • Method Details

    • getSize

      public int getSize()
      Specified by:
      getSize in interface CLProperty
    • toInt

      public int toInt​(jdk.incubator.foreign.MemoryAddress dst, int o)
      Description copied from interface: CLProperty
      Encode this property as an integer array.
      Specified by:
      toInt in interface CLProperty
      Parameters:
      dst - destination
      o - offset
      Returns:
      updated o = (o + getSize())
    • toLong

      public int toLong​(jdk.incubator.foreign.MemoryAddress dst, int o)
      Description copied from interface: CLProperty
      Encode this property as a long poke.
      Specified by:
      toLong in interface CLProperty
      Parameters:
      dst - destination
      o - offset
      Returns:
      updated o = (o + getSize()))
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object