Searched refs:putShort (Results 1 - 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DAbstractPollArrayWrapper.java70 pollArray.putShort(offset, (short)event);
75 pollArray.putShort(offset, (short)revent);
H A DNativeObject.java216 final void putShort(int offset, short value) { method in class:NativeObject
217 unsafe.putShort(offset + address, value);
/libcore/ojluni/src/main/java/java/nio/
H A DHeapByteBuffer.java277 public ByteBuffer putShort(short x) { method in class:HeapByteBuffer
281 Bits.putShort(this, ix(nextPutIndex(2)), x, bigEndian);
286 public ByteBuffer putShort(int i, short x) { method in class:HeapByteBuffer
290 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian);
296 Bits.putShort(this, ix(i), x, bigEndian);
H A DByteBuffer.java181 * bb.putShort(3);
182 * bb.putShort(45);</pre></blockquote>
187 * bb.putInt(0xCAFEBABE).putShort(3).putShort(45);</pre></blockquote>
1057 public abstract ByteBuffer putShort(short value); method in class:ByteBuffer
1096 public abstract ByteBuffer putShort(int index, short value); method in class:ByteBuffer
H A DDirectByteBuffer.java468 private ByteBuffer putShort(long a, short x) { method in class:DirectByteBuffer
474 public final ByteBuffer putShort(short x) { method in class:DirectByteBuffer
481 putShort(ix(nextPutIndex(SizeOf.SHORT)), x);
486 public final ByteBuffer putShort(int i, short x) { method in class:DirectByteBuffer
493 putShort(ix(checkIndex(i, SizeOf.SHORT)), x);
502 putShort(ix(i), x);
H A DBits.java202 static void putShort(ByteBuffer bb, int bi, short x, boolean bigEndian) { method in class:Bits
209 static void putShort(long a, short x, boolean bigEndian) { method in class:Bits
/libcore/ojluni/src/main/java/java/io/
H A DBits.java93 static void putShort(byte[] b, int off, short val) { method in class:Bits
H A DObjectOutputStream.java1684 Bits.putShort(primVals, getFieldOffset(name, Short.TYPE), val);
2015 Bits.putShort(buf, pos, (short) v);
2141 Bits.putShort(buf, pos, v[off++]);
H A DObjectStreamClass.java1953 Bits.putShort(buf, off, unsafe.getShort(obj, key));
2007 unsafe.putShort(obj, key, Bits.getShort(buf, off));
/libcore/ojluni/src/main/java/sun/misc/
H A DUnsafe.java329 public native void putShort(Object obj, long offset, short newValue); method in class:Unsafe
409 public native void putShort(long address, short x); method in class:Unsafe
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java600 b.putShort((short) 0);
1082 b.putShort((short) 0);
1083 b.putShort(0, (short) 0);
1163 b.putShort((short) 0);
1168 b.putShort(0, (short) 0);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DByteBufferTest.java1946 buf.putShort((short) 1);
1963 buf.putShort(value);
1971 buf.putShort(value);
1983 buf.putShort(0, (short) 1);
2000 buf.putShort(i, value);
2007 buf.putShort(-1, value);
2013 buf.putShort(buf.limit() - nbytes + 1, value);
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferBenchmark.java386 src.putShort((short) 0);

Completed in 259 milliseconds