Home
last modified time | relevance | path

Searched refs:backingArray (Results 1 – 25 of 38) sorted by relevance

12

/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
DHeapByteBuffer.java32 protected final byte[] backingArray; field in HeapByteBuffer
36 HeapByteBuffer (byte[] backingArray) { in HeapByteBuffer() argument
37 this(backingArray, backingArray.length, 0); in HeapByteBuffer()
44 HeapByteBuffer (byte[] backingArray, int capacity, int offset) { in HeapByteBuffer() argument
46 this.backingArray = backingArray; in HeapByteBuffer()
49 if (offset + capacity > backingArray.length) { in HeapByteBuffer()
69 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
78 return backingArray[offset + position++]; in get()
85 return backingArray[offset + index]; in get()
165 bytes = bytes | (backingArray[baseOffset + i] & 0xFF); in loadInt()
[all …]
DReadWriteIntArrayBuffer.java30 …ReadWriteIntArrayBuffer buf = new ReadWriteIntArrayBuffer(other.capacity(), other.backingArray, ot… in copy()
45 ReadWriteIntArrayBuffer (int capacity, int[] backingArray, int arrayOffset) { in ReadWriteIntArrayBuffer() argument
46 super(capacity, backingArray, arrayOffset); in ReadWriteIntArrayBuffer()
54 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
70 return backingArray; in protectedArray()
85 backingArray[offset + position++] = c; in put()
93 backingArray[offset + index] = c; in put()
105 System.arraycopy(src, off, backingArray, offset + position, len); in put()
111 return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteDoubleArrayBuffer.java31 …rayBuffer buf = new ReadWriteDoubleArrayBuffer(other.capacity(), other.backingArray, other.offset); in copy()
46 ReadWriteDoubleArrayBuffer (int capacity, double[] backingArray, int arrayOffset) { in ReadWriteDoubleArrayBuffer() argument
47 super(capacity, backingArray, arrayOffset); in ReadWriteDoubleArrayBuffer()
55 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
71 return backingArray; in protectedArray()
86 backingArray[offset + position++] = c; in put()
94 backingArray[offset + index] = c; in put()
106 System.arraycopy(src, off, backingArray, offset + position, len); in put()
112 return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteLongArrayBuffer.java30 …ReadWriteLongArrayBuffer buf = new ReadWriteLongArrayBuffer(other.capacity(), other.backingArray, … in copy()
45 ReadWriteLongArrayBuffer (int capacity, long[] backingArray, int arrayOffset) { in ReadWriteLongArrayBuffer() argument
46 super(capacity, backingArray, arrayOffset); in ReadWriteLongArrayBuffer()
54 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
70 return backingArray; in protectedArray()
85 backingArray[offset + position++] = c; in put()
93 backingArray[offset + index] = c; in put()
105 System.arraycopy(src, off, backingArray, offset + position, len); in put()
111 return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteCharArrayBuffer.java30 …ReadWriteCharArrayBuffer buf = new ReadWriteCharArrayBuffer(other.capacity(), other.backingArray, … in copy()
45 ReadWriteCharArrayBuffer (int capacity, char[] backingArray, int arrayOffset) { in ReadWriteCharArrayBuffer() argument
46 super(capacity, backingArray, arrayOffset); in ReadWriteCharArrayBuffer()
54 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
70 return backingArray; in protectedArray()
85 backingArray[offset + position++] = c; in put()
93 backingArray[offset + index] = c; in put()
105 System.arraycopy(src, off, backingArray, offset + position, len); in put()
111 return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteShortArrayBuffer.java31 …rrayBuffer buf = new ReadWriteShortArrayBuffer(other.capacity(), other.backingArray, other.offset); in copy()
46 ReadWriteShortArrayBuffer (int capacity, short[] backingArray, int arrayOffset) { in ReadWriteShortArrayBuffer() argument
47 super(capacity, backingArray, arrayOffset); in ReadWriteShortArrayBuffer()
55 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
71 return backingArray; in protectedArray()
86 backingArray[offset + position++] = c; in put()
94 backingArray[offset + index] = c; in put()
106 System.arraycopy(src, off, backingArray, offset + position, len); in put()
112 return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteFloatArrayBuffer.java31 …rrayBuffer buf = new ReadWriteFloatArrayBuffer(other.capacity(), other.backingArray, other.offset); in copy()
46 ReadWriteFloatArrayBuffer (int capacity, float[] backingArray, int arrayOffset) { in ReadWriteFloatArrayBuffer() argument
47 super(capacity, backingArray, arrayOffset); in ReadWriteFloatArrayBuffer()
57 backingArray[j] = backingArray[i]; in compact()
74 return backingArray; in protectedArray()
89 backingArray[offset + position++] = c; in put()
97 backingArray[offset + index] = c; in put()
109 System.arraycopy(src, off, backingArray, offset + position, len); in put()
115 return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadWriteHeapByteBuffer.java31 …ReadWriteHeapByteBuffer buf = new ReadWriteHeapByteBuffer(other.backingArray, other.capacity(), ot… in copy()
39 ReadWriteHeapByteBuffer (byte[] backingArray) { in ReadWriteHeapByteBuffer() argument
40 super(backingArray); in ReadWriteHeapByteBuffer()
47 ReadWriteHeapByteBuffer (byte[] backingArray, int capacity, int arrayOffset) { in ReadWriteHeapByteBuffer() argument
48 super(backingArray, capacity, arrayOffset); in ReadWriteHeapByteBuffer()
56 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); in compact()
72 return backingArray; in protectedArray()
87 backingArray[offset + position++] = b; in put()
95 backingArray[offset + index] = b; in put()
116 System.arraycopy(src, off, backingArray, offset + position, len); in put()
[all …]
DCharArrayBuffer.java29 protected final char[] backingArray; field in CharArrayBuffer
41 CharArrayBuffer (int capacity, char[] backingArray, int offset) { in CharArrayBuffer() argument
43 this.backingArray = backingArray; in CharArrayBuffer()
51 return backingArray[offset + position++]; in get()
58 return backingArray[offset + index]; in get()
69 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
94 return String.copyValueOf(backingArray, offset + position, remaining()); in toString()
DFloatArrayBuffer.java30 protected final float[] backingArray; field in FloatArrayBuffer
42 FloatArrayBuffer (int capacity, float[] backingArray, int offset) { in FloatArrayBuffer() argument
44 this.backingArray = backingArray; in FloatArrayBuffer()
52 return backingArray[offset + position++]; in get()
59 return backingArray[offset + index]; in get()
70 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
DDoubleArrayBuffer.java30 protected final double[] backingArray; field in DoubleArrayBuffer
42 DoubleArrayBuffer (int capacity, double[] backingArray, int offset) { in DoubleArrayBuffer() argument
44 this.backingArray = backingArray; in DoubleArrayBuffer()
52 return backingArray[offset + position++]; in get()
59 return backingArray[offset + index]; in get()
70 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
DShortArrayBuffer.java30 protected final short[] backingArray; field in ShortArrayBuffer
42 ShortArrayBuffer (int capacity, short[] backingArray, int offset) { in ShortArrayBuffer() argument
44 this.backingArray = backingArray; in ShortArrayBuffer()
52 return backingArray[offset + position++]; in get()
59 return backingArray[offset + index]; in get()
70 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
DLongArrayBuffer.java29 protected final long[] backingArray; field in LongArrayBuffer
41 LongArrayBuffer (int capacity, long[] backingArray, int offset) { in LongArrayBuffer() argument
43 this.backingArray = backingArray; in LongArrayBuffer()
51 return backingArray[offset + position++]; in get()
58 return backingArray[offset + index]; in get()
69 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
DIntArrayBuffer.java29 protected final int[] backingArray; field in IntArrayBuffer
41 IntArrayBuffer (int capacity, int[] backingArray, int offset) { in IntArrayBuffer() argument
43 this.backingArray = backingArray; in IntArrayBuffer()
51 return backingArray[offset + position++]; in get()
58 return backingArray[offset + index]; in get()
69 System.arraycopy(backingArray, offset + position, dest, off, len); in get()
DReadOnlyLongArrayBuffer.java30 …ReadOnlyLongArrayBuffer buf = new ReadOnlyLongArrayBuffer(other.capacity(), other.backingArray, ot… in copy()
37 ReadOnlyLongArrayBuffer (int capacity, long[] backingArray, int arrayOffset) { in ReadOnlyLongArrayBuffer() argument
38 super(capacity, backingArray, arrayOffset); in ReadOnlyLongArrayBuffer()
86 return new ReadOnlyLongArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyDoubleArrayBuffer.java31 …rrayBuffer buf = new ReadOnlyDoubleArrayBuffer(other.capacity(), other.backingArray, other.offset); in copy()
38 ReadOnlyDoubleArrayBuffer (int capacity, double[] backingArray, int arrayOffset) { in ReadOnlyDoubleArrayBuffer() argument
39 super(capacity, backingArray, arrayOffset); in ReadOnlyDoubleArrayBuffer()
87 return new ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyIntArrayBuffer.java30 …ReadOnlyIntArrayBuffer buf = new ReadOnlyIntArrayBuffer(other.capacity(), other.backingArray, othe… in copy()
37 ReadOnlyIntArrayBuffer (int capacity, int[] backingArray, int arrayOffset) { in ReadOnlyIntArrayBuffer() argument
38 super(capacity, backingArray, arrayOffset); in ReadOnlyIntArrayBuffer()
86 return new ReadOnlyIntArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyShortArrayBuffer.java31 …ReadOnlyShortArrayBuffer buf = new ReadOnlyShortArrayBuffer(other.capacity(), other.backingArray, … in copy()
38 ReadOnlyShortArrayBuffer (int capacity, short[] backingArray, int arrayOffset) { in ReadOnlyShortArrayBuffer() argument
39 super(capacity, backingArray, arrayOffset); in ReadOnlyShortArrayBuffer()
87 return new ReadOnlyShortArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyFloatArrayBuffer.java31 …ReadOnlyFloatArrayBuffer buf = new ReadOnlyFloatArrayBuffer(other.capacity(), other.backingArray, … in copy()
38 ReadOnlyFloatArrayBuffer (int capacity, float[] backingArray, int arrayOffset) { in ReadOnlyFloatArrayBuffer() argument
39 super(capacity, backingArray, arrayOffset); in ReadOnlyFloatArrayBuffer()
87 return new ReadOnlyFloatArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyCharArrayBuffer.java30 …ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other.capacity(), other.backingArray, ot… in copy()
37 ReadOnlyCharArrayBuffer (int capacity, char[] backingArray, int arrayOffset) { in ReadOnlyCharArrayBuffer() argument
38 super(capacity, backingArray, arrayOffset); in ReadOnlyCharArrayBuffer()
93 return new ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + position); in slice()
DReadOnlyHeapByteBuffer.java30 …ReadOnlyHeapByteBuffer buf = new ReadOnlyHeapByteBuffer(other.backingArray, other.capacity(), othe… in copy()
38 ReadOnlyHeapByteBuffer (byte[] backingArray, int capacity, int arrayOffset) { in ReadOnlyHeapByteBuffer() argument
39 super(backingArray, capacity, arrayOffset); in ReadOnlyHeapByteBuffer()
127 …ReadOnlyHeapByteBuffer slice = new ReadOnlyHeapByteBuffer(backingArray, remaining(), offset + posi… in slice()
DDirectReadWriteByteBuffer.java41 DirectReadWriteByteBuffer (ArrayBuffer backingArray) { in DirectReadWriteByteBuffer() argument
42 super(backingArray); in DirectReadWriteByteBuffer()
49 DirectReadWriteByteBuffer (ArrayBuffer backingArray, int capacity, int arrayOffset) { in DirectReadWriteByteBuffer() argument
50 super(backingArray, capacity, arrayOffset); in DirectReadWriteByteBuffer()
DDirectReadOnlyByteBuffer.java41 DirectReadOnlyByteBuffer (ArrayBuffer backingArray, int capacity, int arrayOffset) { in DirectReadOnlyByteBuffer() argument
42 super(backingArray, capacity, arrayOffset); in DirectReadOnlyByteBuffer()
/external/autotest/frontend/client/src/autotest/common/
DJSONArrayList.java12 private JSONArray backingArray; field in JSONArrayList
15 backingArray = new JSONArray(); in JSONArrayList()
19 backingArray = array; in JSONArrayList()
24 backingArray.set(index, object); in add()
30 return (T) backingArray.get(index); in get()
41 return backingArray.size(); in size()
45 return backingArray; in getBackingArray()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DSafeArrayList.java89 private E[] backingArray; field in SafeArrayList
116 if( backingArray != null ) in getArray()
117 return backingArray; in getArray()
120 backingArray = createArray(0); in getArray()
125 backingArray = buffer.toArray( createArray(buffer.size()) ); in getArray()
128 return backingArray; in getArray()
135 if( backingArray == null ) { in getBuffer()
141 buffer = new ArrayList( Arrays.asList(backingArray) ); in getBuffer()
142 backingArray = null; in getBuffer()
258 if( backingArray != null ) in get()
[all …]

12