public final class VectorByteBufferedIntegral4s64 extends Object implements VectorByteBufferedIntegral4Type
A storage vector.
Storage component type: long
Storage component count: 4
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
byteBuffer() |
long |
byteOffset() |
protected int |
byteOffsetForIndex(int component_index) |
protected int |
componentBytes() |
protected int |
componentCount() |
static VectorByteBufferedIntegral4Type |
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, waitsetVector4I, setVector4L, setXYZWsetVector3I, setVector3L, setXYZsetVector2I, setVector2L, setXYbyteBuffer, byteOffset, offset, sizeBytespublic static VectorByteBufferedIntegral4Type 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.
b - The byte bufferbase - The base addressoffset - A constant offsetprotected int componentCount()
public long x()
x in interface VectorReadable2LTypex componentpublic long y()
y in interface VectorReadable2LTypey componentpublic long z()
z in interface VectorReadable3LTypez componentpublic long w()
w in interface VectorReadable4LTypew componentpublic void setX(long x)
VectorStorageIntegral2Typex component.setX in interface VectorStorageIntegral2Typex - The X componentpublic void setY(long y)
VectorStorageIntegral2TypeY component.setY in interface VectorStorageIntegral2Typey - The Y componentpublic void setZ(long z)
VectorStorageIntegral3Typez component.setZ in interface VectorStorageIntegral3Typez - The Z componentpublic void setW(long w)
VectorStorageIntegral4Typew component.setW in interface VectorStorageIntegral4Typew - The W componentprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer in interface TensorByteBufferedTypepublic final long byteOffset()
byteOffset in interface TensorByteBufferedTypepublic final int offset()
offset in interface TensorByteBufferedTypeTensorByteBufferedType.byteOffset().public final int sizeBytes()
sizeBytes in interface TensorByteBufferedTypeprotected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com