Class DeepImage.Buffer

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

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

    • Buffer

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

    • channel_names

      public PointerBuffer channel_names()
      Returns:
      a PointerBuffer view of the data pointed to by the channel_names field.
    • image

      public PointerBuffer image()
      Returns:
      a PointerBuffer view of the data pointed to by the image field.
    • offset_table

      public PointerBuffer offset_table(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the offset_table field.
    • num_channels

      public int num_channels()
      Returns:
      the value of the num_channels field.
    • width

      public int width()
      Returns:
      the value of the width field.
    • height

      public int height()
      Returns:
      the value of the height field.
    • channel_names

      public DeepImage.Buffer channel_names(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the channel_names field.
    • image

      public DeepImage.Buffer image(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the image field.
    • offset_table

      public DeepImage.Buffer offset_table(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the offset_table field.
    • num_channels

      public DeepImage.Buffer num_channels(int value)
      Sets the specified value to the num_channels field.
    • width

      public DeepImage.Buffer width(int value)
      Sets the specified value to the width field.
    • height

      public DeepImage.Buffer height(int value)
      Sets the specified value to the height field.