DataBuffer and stores data internally as bytes.
Values stored in the byte array(s) of this DataBuffer are treated as
unsigned values.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[][] | bankdata
All data banks |
| pack-priv byte[] | data
The default data bank. |
| Access | Constructor and Description |
|---|---|
| public | DataBufferByte(int
The size of the size)DataBuffer.Constructs a byte-based |
| public | DataBufferByte(int
The size of the banks in the size, int DataBuffer.The number of banks in the numBanks)DataBuffer.Constructs a byte based |
| public | DataBufferByte(byte[]
The byte array for the dataArray, int DataBuffer.The size of the size)DataBuffer bank.Constructs a byte-based |
| public | DataBufferByte(byte[]
The byte array for the dataArray, int DataBuffer.The size of the size, int DataBuffer bank.The offset into the offset)dataArray. dataArray
must have at least offset + size elements.Constructs a byte-based |
| public | DataBufferByte(byte[][]
The byte arrays for the dataArray, int DataBuffer.The size of the banks in the size)DataBuffer.Constructs a byte-based |
| public | DataBufferByte(byte[][]
The byte arrays for the dataArray, int DataBuffer.The size of the banks in the size, int[] DataBuffer.The offsets into each array. offsets)Constructs a byte-based |
| Modifier and Type | Method and Description |
|---|---|
| public byte[][] | |
| public byte[] | |
| public byte[] | Returns: The data array for the specified bank.The bank whose data array you want to get. bank)Returns the data array for the specified bank. |
| public int | Returns: The requested data array element as an integer.The data array element you want to get. i)Overrides java. Returns the requested data array element from the first (default) bank. |
| public int | Returns: The requested data array element as an integer.The bank from which you want to get a data array element. bank, int The data array element you want to get. i)Implements abstract java. Returns the requested data array element from the specified bank. |
| public void | setElem(int
The data array element you want to set. i, int The integer value to which you want to set the data array element. val)Overrides java. Sets the requested data array element in the first (default) bank to the specified value. |
| public void | setElem(int
The bank in which you want to set the data array element. bank, int The data array element you want to set. i, int The integer value to which you want to set the specified data array element. val)Implements abstract java. Sets the requested data array element in the specified bank from the given integer. |
| bankdata | back to summary |
|---|---|
| pack-priv byte[][] bankdata All data banks | |
| data | back to summary |
|---|---|
| pack-priv byte[] data The default data bank. | |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(int size) Constructs a byte-based
| |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(int size, int numBanks) Constructs a byte based
| |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(byte[] dataArray, int size) Constructs a byte-based
Note that
| |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(byte[] dataArray, int size, int offset) Constructs a byte-based
Note that
| |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(byte[][] dataArray, int size) Constructs a byte-based
Note that
| |
| DataBufferByte | back to summary |
|---|---|
| public DataBufferByte(byte[][] dataArray, int size, int[] offsets) Constructs a byte-based
Note that
| |
| getBankData | back to summary |
|---|---|
| public byte[][] getBankData() Returns the data arrays for all banks.
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public byte[] getData() Returns the default (first) byte data array.
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public byte[] getData(int bank) Returns the data array for the specified bank.
Note that calling this method may cause this
| |
| getElem | back to summary |
|---|---|
| public int getElem(int i) Overrides java. Returns the requested data array element from the first (default) bank.
| |
| getElem | back to summary |
|---|---|
| public int getElem(int bank, int i) Implements abstract java. Returns the requested data array element from the specified bank.
| |
| setElem | back to summary |
|---|---|
| public void setElem(int i, int val) Overrides java. Sets the requested data array element in the first (default) bank to the specified value.
| |
| setElem | back to summary |
|---|---|
| public void setElem(int bank, int i, int val) Implements abstract java. Sets the requested data array element in the specified bank from the given integer.
| |