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