DataBuffer and stores data internally as
shorts. Values stored in the short array(s) of this DataBuffer
are treated as unsigned values.
| 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 | DataBufferUShort(int
The size of the size)DataBuffer.Constructs an unsigned-short based |
| public | DataBufferUShort(int
The size of the banks in the size, int DataBuffer.The number of banks in the numBanks)DataBuffer.Constructs an unsigned-short based |
| public | DataBufferUShort(short[]
The unsigned-short array for the dataArray, int DataBuffer.The size of the size)DataBuffer bank.Constructs an unsigned-short based |
| public | DataBufferUShort(short[]
The unsigned-short array for the dataArray, int DataBuffer.The size of the size, int DataBuffer bank.The offset into the offset)dataArray.Constructs an unsigned-short based |
| public | DataBufferUShort(short[][]
The unsigned-short arrays for the dataArray, int DataBuffer.The size of the banks in the size)DataBuffer.Constructs an unsigned-short based |
| public | DataBufferUShort(short[][]
The unsigned-short arrays for the dataArray, int DataBuffer.The size of the banks in the size, int[] DataBuffer.The offsets into each array. offsets)Constructs an unsigned-short based |
| Modifier and Type | Method and Description |
|---|---|
| public short[][] | |
| public short[] | Returns: The first unsigned-short data array.Returns the default (first) unsigned-short data array. |
| 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. | |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(int size) Constructs an unsigned-short based
| |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(int size, int numBanks) Constructs an unsigned-short based
| |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(short[] dataArray, int size) Constructs an unsigned-short based
Note that
| |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(short[] dataArray, int size, int offset) Constructs an unsigned-short based
Note that
| |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(short[][] dataArray, int size) Constructs an unsigned-short based
Note that
| |
| DataBufferUShort | back to summary |
|---|---|
| public DataBufferUShort(short[][] dataArray, int size, int[] offsets) Constructs an unsigned-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) unsigned-short 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.
| |