Lines Matching +defs:val +defs:data

41  * This class extends <CODE>DataBuffer</CODE> and stores data internally as bytes.
47 * if they can maintain control over how the data for an image is
51 * to that data.
53 * data in locations other than a Java array.
62 /** The default data bank. */
63 byte data[];
65 /** All data banks */
76 data = new byte[size];
78 bankdata[0] = data;
94 data = bankdata[0];
114 data = dataArray;
116 bankdata[0] = data;
138 data = dataArray;
140 bankdata[0] = data;
160 data = bankdata[0];
185 data = bankdata[0];
189 * Returns the default (first) byte data array.
196 * @return The first byte data array.
200 return data;
204 * Returns the data array for the specified bank.
211 * @param bank The bank whose data array you want to get.
212 * @return The data array for the specified bank.
220 * Returns the data arrays for all banks.
227 * @return All of the data arrays.
235 * Returns the requested data array element from the first (default) bank.
237 * @param i The data array element you want to get.
238 * @return The requested data array element as an integer.
243 return (int)(data[i+offset]) & 0xff;
247 * Returns the requested data array element from the specified bank.
249 * @param bank The bank from which you want to get a data array element.
250 * @param i The data array element you want to get.
251 * @return The requested data array element as an integer.
260 * Sets the requested data array element in the first (default) bank
263 * @param i The data array element you want to set.
264 * @param val The integer value to which you want to set the data array element.
268 public void setElem(int i, int val) {
269 data[i+offset] = (byte)val;
274 * Sets the requested data array element in the specified bank
276 * @param bank The bank in which you want to set the data array element.
277 * @param i The data array element you want to set.
278 * @param val The integer value to which you want to set the specified data array element.
282 public void setElem(int bank, int i, int val) {
283 bankdata[bank][i+offsets[bank]] = (byte)val;