Package ucar.nc2.iosp
Interface LayoutBB.Chunk
- All Superinterfaces:
Layout.Chunk
- Enclosing interface:
- LayoutBB
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
Modifier and TypeMethodDescriptionlongGet starting element position as a 1D element index into the destination, eg the requested array with shape "wantSection".intGet number of elements to transfer contiguously (Note: elements, not bytes)intGet the position in sourceBuffer where to read or write: "file position" Methods inherited from interface ucar.nc2.iosp.Layout.Chunk
getSrcPos
-
Method Details
-
getSrcElem
int getSrcElem()Get the position in sourceBuffer 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:
getNelemsin interfaceLayout.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:
getDestElemin interfaceLayout.Chunk- Returns:
- starting element in the array (Note: elements, not bytes)
-