public class NIOByteArray extends Object implements ArrayDataAccess<NIOByteArray>, ByteAccess
Modifier and Type | Field and Description |
---|---|
protected ByteBuffer |
data |
Constructor and Description |
---|
NIOByteArray(byte[] data) |
NIOByteArray(int numEntities) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
NIOByteArray |
createArray(int numEntities) |
byte[] |
getCurrentStorageArray() |
byte |
getValue(int index) |
void |
setValue(int index,
byte value) |
protected ByteBuffer data
public NIOByteArray(int numEntities)
public NIOByteArray(byte[] data)
public void close()
close
in interface DataAccess
public byte getValue(int index)
getValue
in interface ByteAccess
public void setValue(int index, byte value)
setValue
in interface ByteAccess
public byte[] getCurrentStorageArray()
getCurrentStorageArray
in interface ArrayDataAccess<NIOByteArray>
public NIOByteArray createArray(int numEntities)
createArray
in interface ArrayDataAccess<NIOByteArray>
Copyright © 2015–2021 Fiji. All rights reserved.