public abstract class Base1DBuffer extends BaseBuffer
BaseBuffer
mostly applies.PyBuffer.Pointer
ANY_CONTIGUOUS, AS_ARRAY, C_CONTIGUOUS, CONTIG, CONTIG_RO, CONTIGUITY, F_CONTIGUOUS, FORMAT, FULL, FULL_RO, INDIRECT, IS_C_CONTIGUOUS, IS_F_CONTIGUOUS, MAX_NDIM, NAVIGATION, ND, RECORDS, RECORDS_RO, SIMPLE, STRIDED, STRIDED_RO, STRIDES, WRITABLE
Modifier and Type | Method and Description |
---|---|
int |
getLen()
The total number of bytes represented by the view, which will be the product of the elements of the
shape array, and the item size in bytes. |
boolean |
isContiguous(char order)
Enquire whether the array is represented contiguously in the backing storage, according to C
or Fortran ordering.
|
byteAt, byteAt, byteIndex, byteIndex, close, copyFrom, copyFrom, copyTo, copyTo, getBuf, getBuffer, getBufferAgain, getBufferSlice, getFormat, getItemsize, getNdim, getNIOByteBuffer, getObj, getPointer, getPointer, getShape, getStrides, getSuboffsets, hasArray, intAt, intAt, isReadonly, isReleased, release, storeAt, storeAt, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBufferSlice
public int getLen()
PyBUF
shape
array, and the item size in bytes.getLen
in interface PyBUF
getLen
in class BaseBuffer
public boolean isContiguous(char order)
Specialised in BaseArrayBuffer
to one dimension.
isContiguous
in interface PyBUF
isContiguous
in class BaseBuffer
order
- 'C', 'F' or 'A', as the storage order is C, Fortran or either.