DataBuffer and stores data internally
as integers.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[][] | bankdata
All data banks |
| pack-priv int[] | data
The default data bank. |
| Access | Constructor and Description |
|---|---|
| public | DataBufferInt(int
The size of the size)DataBuffer.Constructs an integer-based |
| public | DataBufferInt(int
The size of the banks in the size, int DataBuffer.The number of banks in the numBanks)DataBuffer.Constructs an integer-based |
| public | DataBufferInt(int[]
The integer array for the dataArray, int DataBuffer.The size of the size)DataBuffer bank.Constructs an integer-based |
| public | DataBufferInt(int[]
The integer array for the dataArray, int DataBuffer.The size of the size, int DataBuffer bank.The offset into the offset)dataArray.Constructs an integer-based |
| public | DataBufferInt(int[][]
The integer arrays for the dataArray, int DataBuffer.The size of the banks in the size)DataBuffer.Constructs an integer-based |
| public | DataBufferInt(int[][]
The integer arrays for the dataArray, int DataBuffer.The size of the banks in the size, int[] DataBuffer.The offsets into each array. offsets)Constructs an integer-based |
| Modifier and Type | Method and Description |
|---|---|
| public int[][] | |
| public int[] | Returns: The first integer data array.Returns the default (first) int data array in |
| public int[] | 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
to the integer value |
| bankdata | back to summary |
|---|---|
| pack-priv int[][] bankdata All data banks | |
| data | back to summary |
|---|---|
| pack-priv int[] data The default data bank. | |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int size) Constructs an integer-based
| |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int size, int numBanks) Constructs an integer-based
| |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int[] dataArray, int size) Constructs an integer-based
Note that
| |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int[] dataArray, int size, int offset) Constructs an integer-based
Note that
| |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int[][] dataArray, int size) Constructs an integer-based
Note that
| |
| DataBufferInt | back to summary |
|---|---|
| public DataBufferInt(int[][] dataArray, int size, int[] offsets) Constructs an integer-based
Note that
| |
| getBankData | back to summary |
|---|---|
| public int[][] getBankData() Returns the data arrays for all banks.
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public int[] getData() Returns the default (first) int data array in
Note that calling this method may cause this
| |
| getData | back to summary |
|---|---|
| public int[] 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
to the integer value
| |