public class SharedByteVector extends SharedAbstractVector<SharedByteVector>
cube
Constructor and Description |
---|
SharedByteVector(int cols)
Constructs a 1-by-cols shared byte vector.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
array()
Returns the byte array that backs this vector.
|
void |
get(byte[] array)
Absolute bulk get method.
|
void |
get(byte[] array,
int y)
Absolute bulk get method.
|
byte |
get(int j)
Absolute get method.
|
ByteBuffer[] |
map()
Maps the shared memory cube of this shared memory vector.
|
void |
put(byte[] array)
Absolute bulk put method.
|
void |
put(byte[] array,
int y)
Absolute bulk put method.
|
void |
put(int j,
byte value)
Absolute put method.
|
int |
unit()
Returns the unit size (in bytes) of this shared vector.
|
alloc, cube, free
numCols, numColsWithAttributes, numMetaCols, numPaddingCols, setRowAttributes
public SharedByteVector(int cols)
cols
- Number of colums.public ByteBuffer[] map()
map
in class SharedAbstractVector<SharedByteVector>
public byte[] array()
public byte get(int j)
j
- The column index from which the byte will be read.public void get(byte[] array, int y)
array
- The byte array at the given index.y
- The column index from which the byte array will be read.public void get(byte[] array)
array
- The byte array.public void put(int j, byte value)
j
- The column index at which the byte will be written.value
- The byte to be written.public void put(byte[] array, int y)
array
- The byte array to be written.y
- The column index at which the byte array will be written.public void put(byte[] array)
array
- The byte array to be written.public int unit()
Copyright © 2018–2020 InAccel. All rights reserved.