ucar.nc2.iosp
Interface LayoutBB.Chunk

Enclosing interface:
LayoutBB

public static interface LayoutBB.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 Summary
 java.nio.ByteBuffer getByteBuffer()
           
 long getDestElem()
          Get starting element position as a 1D element index into the destination, eg the requested array with shape "wantSection".
 java.nio.DoubleBuffer getDoubleBuffer()
           
 java.nio.FloatBuffer getFloatBuffer()
           
 java.nio.IntBuffer getIntBuffer()
           
 java.nio.LongBuffer getLongBuffer()
           
 int getNelems()
          Get number of elements to transfer contiguously (Note: elements, not bytes)
 java.nio.ShortBuffer getShortBuffer()
           
 int getSrcElem()
          Get the position in source Buffer where to read or write: "file position"
 

Method Detail

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

java.nio.ByteBuffer getByteBuffer()

getShortBuffer

java.nio.ShortBuffer getShortBuffer()

getIntBuffer

java.nio.IntBuffer getIntBuffer()

getFloatBuffer

java.nio.FloatBuffer getFloatBuffer()

getDoubleBuffer

java.nio.DoubleBuffer getDoubleBuffer()

getLongBuffer

java.nio.LongBuffer getLongBuffer()

getNelems

int getNelems()
Get number of elements to transfer contiguously (Note: elements, not bytes)

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".

Returns:
starting element in the array (Note: elements, not bytes)