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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuffer
getByteBuffer()
long
getDestElem()
Get starting element position as a 1D element index into the destination, eg the requested array with shape "wantSection".DoubleBuffer
getDoubleBuffer()
FloatBuffer
getFloatBuffer()
IntBuffer
getIntBuffer()
LongBuffer
getLongBuffer()
int
getNelems()
Get number of elements to transfer contiguously (Note: elements, not bytes)ShortBuffer
getShortBuffer()
int
getSrcElem()
Get the position in sourceBuffer where to read or write: "file position" -
Methods inherited from interface ucar.nc2.iosp.Layout.Chunk
getSrcPos
-
-
-
-
Method Detail
-
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:
getNelems
in 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:
getDestElem
in interfaceLayout.Chunk
- Returns:
- starting element in the array (Note: elements, not bytes)
-
-