Lines Matching refs:array
14 private byte [] array;
24 array = new byte[size];
57 if (array.length - pos >= n) {
60 int newsize = array.length * 2;
65 System.arraycopy(array, 0, newarray, 0, pos);
66 array = newarray;
112 array[pos++] = (byte)(val & 0xFF);
123 array[pos++] = (byte)((val >>> 8) & 0xFF);
124 array[pos++] = (byte)(val & 0xFF);
138 array[where++] = (byte)((val >>> 8) & 0xFF);
139 array[where++] = (byte)(val & 0xFF);
150 array[pos++] = (byte)((val >>> 24) & 0xFF);
151 array[pos++] = (byte)((val >>> 16) & 0xFF);
152 array[pos++] = (byte)((val >>> 8) & 0xFF);
153 array[pos++] = (byte)(val & 0xFF);
157 * Writes a byte array to the stream.
158 * @param b The array to write.
159 * @param off The offset of the array to start copying data from.
165 System.arraycopy(b, off, array, pos, len);
170 * Writes a byte array to the stream.
171 * @param b The array to write.
189 array[pos++] = (byte)(s.length & 0xFF);
194 * Returns a byte array containing the current contents of the stream.
199 System.arraycopy(array, 0, out, 0, pos);