Package ucar.nc2.iosp

Interface LayoutBB.Chunk

All Superinterfaces:
Layout.Chunk
Enclosing interface:
LayoutBB

public static interface LayoutBB.Chunk extends Layout.Chunk
A chunk of data that is contiguous in both the source and destination. Read nelems from ByteBuffer at filePos, store in destination at startElem.
  • Method Details

    • getSrcElem

      int getSrcElem()
      Get the position in source Buffer where to read or write: "file position"
      Returns:
      position as a element index into the Buffer
    • getByteBuffer

      ByteBuffer getByteBuffer()
    • getShortBuffer

      ShortBuffer getShortBuffer()
    • getIntBuffer

      IntBuffer getIntBuffer()
    • getFloatBuffer

      FloatBuffer getFloatBuffer()
    • getDoubleBuffer

      DoubleBuffer getDoubleBuffer()
    • getLongBuffer

      LongBuffer getLongBuffer()
    • getNelems

      int getNelems()
      Get number of elements to transfer contiguously (Note: elements, not bytes)
      Specified by:
      getNelems in interface Layout.Chunk
      Returns:
      number of elements to transfer
    • getDestElem

      long getDestElem()
      Get starting element position as a 1D element index into the destination, eg the requested array with shape "wantSection".
      Specified by:
      getDestElem in interface Layout.Chunk
      Returns:
      starting element in the array (Note: elements, not bytes)