T
- A phantom type parameterPVectorReadable2LType<T>
, PVectorReadable3LType<T>
, PVectorReadable4LType<T>
, VectorReadable2LType
, VectorReadable3LType
, VectorReadable4LType
, PVectorStorageIntegral2Type<T>
, PVectorStorageIntegral3Type<T>
, PVectorStorageIntegral4Type<T>
, VectorStorageIntegral2Type
, VectorStorageIntegral3Type
, VectorStorageIntegral4Type
, VectorStorageType
, PVectorByteBufferedIntegral4Type<T>
, TensorByteBufferedType
, VectorByteBufferedType
public final class PVectorByteBufferedIntegral4s8<T> extends Object implements PVectorByteBufferedIntegral4Type<T>
A storage vector.
Storage component type: byte
Storage component count: 4
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
byteBuffer() |
|
long |
byteOffset() |
|
protected int |
byteOffsetForIndex(int component_index) |
|
protected int |
componentBytes() |
|
protected int |
componentCount() |
|
static <T> PVectorByteBufferedIntegral4s8<T> |
createWithBase(ByteBuffer b,
com.io7m.mutable.numbers.core.MutableLongType base,
int offset) |
Return a new vector that is backed by the given byte buffer
b |
int |
offset() |
|
void |
setW(long w) |
Set the
w component. |
void |
setX(long x) |
Set the
x component. |
void |
setY(long y) |
Set the
Y component. |
void |
setZ(long z) |
Set the
z component. |
int |
sizeBytes() |
|
long |
w() |
|
long |
x() |
|
long |
y() |
|
long |
z() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPVector2I, setPVector2L
setPVector3I, setPVector3L
setPVector4I, setPVector4L
byteBuffer, byteOffset, offset, sizeBytes
setVector2I, setVector2L, setXY
setVector3I, setVector3L, setXYZ
setVector4I, setVector4L, setXYZW
public static <T> PVectorByteBufferedIntegral4s8<T> createWithBase(ByteBuffer b, com.io7m.mutable.numbers.core.MutableLongType base, int offset)
Return a new vector that is backed by the given byte buffer
b
The data for the instance will be taken from the data at the current
value of base.get() + offset
, each time a field is requested or
set.
No initialization of the data is performed.
T
- A phantom type parameterb
- The byte bufferbase
- The base addressoffset
- A constant offsetprotected int componentCount()
public long x()
x
in interface VectorReadable2LType
x
componentpublic long y()
y
in interface VectorReadable2LType
y
componentpublic long z()
z
in interface VectorReadable3LType
z
componentpublic long w()
w
in interface VectorReadable4LType
w
componentpublic void setX(long x)
VectorStorageIntegral2Type
x
component.setX
in interface VectorStorageIntegral2Type
x
- The X componentpublic void setY(long y)
VectorStorageIntegral2Type
Y
component.setY
in interface VectorStorageIntegral2Type
y
- The Y componentpublic void setZ(long z)
VectorStorageIntegral3Type
z
component.setZ
in interface VectorStorageIntegral3Type
z
- The Z componentpublic void setW(long w)
VectorStorageIntegral4Type
w
component.setW
in interface VectorStorageIntegral4Type
w
- The W componentprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer
in interface TensorByteBufferedType
public final long byteOffset()
byteOffset
in interface TensorByteBufferedType
public final int offset()
offset
in interface TensorByteBufferedType
TensorByteBufferedType.byteOffset()
.public final int sizeBytes()
sizeBytes
in interface TensorByteBufferedType
protected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com