Class CLBufferRegion

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CLBufferRegion
    extends Struct
    implements NativeResource
    Buffer region struct.

    Member documentation

    • origin – the region offset, in bytes
    • size – the region size, in bytes

    Layout

    
     struct cl_buffer_region {
         size_t origin;
         size_t size;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ORIGIN, SIZE

        The struct member offsets.
    • Constructor Detail

      • CLBufferRegion

        public CLBufferRegion​(java.nio.ByteBuffer container)
        Creates a CLBufferRegion instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.