Class DeviceMemoryBufferView

All Implemented Interfaces:
AutoCloseable

public class DeviceMemoryBufferView extends BaseDeviceMemoryBuffer
This class represents data in some form on the GPU. The memory pointed at by this buffer is not owned by this buffer. So you have to be sure that this buffer does not outlive the buffer that is backing it.
  • Constructor Details

    • DeviceMemoryBufferView

      public DeviceMemoryBufferView(long address, long lengthInBytes)
  • Method Details

    • slice

      public final DeviceMemoryBufferView slice(long offset, long len)
      At the moment we don't have use for slicing a view.
      Specified by:
      slice in class MemoryBuffer
      Parameters:
      offset - where to start the slice at.
      len - how many bytes to slice
      Returns:
      a slice of the original buffer that will need to be closed independently