Home
last modified time | relevance | path

Searched refs:putChar (Results 1 – 25 of 33) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java55 static void putChar(byte[] val, int index, int c) { in putChar() method in StringUTF16
177 putChar(val, i, value[off]);
250 putChar(buf, j, cp);
252 putChar(buf, j++, Character.highSurrogate(cp));
253 putChar(buf, j, Character.lowSurrogate(cp));
261 putChar(result, 0, c);
267 putChar(result, 0, Character.highSurrogate(cp));
268 putChar(result, 1, Character.lowSurrogate(cp));
629 putChar(buf, j, getChar(value, j)); // TBD:arraycopy?
633 putChar(buf, i, c == oldChar ? newChar : c);
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java243 final void putChar(int offset, char value) { in putChar() method in NativeObject
244 unsafe.putChar(offset + address, value); in putChar()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java94 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer
98 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
DDirectByteBuffer.annotated.java99 public final java.nio.ByteBuffer putChar(char x) { throw new RuntimeException("Stub!"); } in putChar() method in DirectByteBuffer
102 public final java.nio.ByteBuffer putChar(int i, char x) { throw new RuntimeException("Stub!"); } in putChar() method in DirectByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java461 public ByteBuffer putChar(char x) { in putChar() method in HeapByteBuffer
467 Bits.putChar(this, ix(nextPutIndex(2)), x, bigEndian); in putChar()
487 public ByteBuffer putChar(int i, char x) { in putChar() method in HeapByteBuffer
493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar()
503 Bits.putChar(this, ix(i), x, bigEndian); in putCharUnchecked()
DDirectByteBuffer.java417 private ByteBuffer putChar(long a, char x) { in putChar() method in DirectByteBuffer
423 public final ByteBuffer putChar(char x) { in putChar() method in DirectByteBuffer
430 putChar(ix(nextPutIndex(Character.BYTES)), x); in putChar()
435 public final ByteBuffer putChar(int i, char x) { in putChar() method in DirectByteBuffer
442 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar()
451 putChar(ix(i), x); in putCharUnchecked()
DByteBuffer.java2457 public abstract ByteBuffer putChar(char value); in putChar() method in ByteBuffer
2505 public abstract ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
DBits.java122 static void putChar(ByteBuffer bb, int bi, char x, boolean bigEndian) { in putChar() method in Bits
129 static void putChar(long a, char x, boolean bigEndian) { in putChar() method in Bits
DHeap-X-Buffer.java.template461 public $Type$Buffer putChar(char x) {
467 Bits.putChar(this, ix(nextPutIndex(2)), x, bigEndian);
487 public $Type$Buffer putChar(int i, char x) {
493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian);
503 Bits.putChar(this, ix(i), x, bigEndian);
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java186 private java.nio.ByteBuffer putChar(long a, char x) { in putChar() method in DirectByteBuffer
190 public final java.nio.ByteBuffer putChar(char x) { in putChar() method in DirectByteBuffer
194 public final java.nio.ByteBuffer putChar(int i, char x) { in putChar() method in DirectByteBuffer
DByteBuffer.java151 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer
159 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
/libcore/ojluni/annotations/flagged_api/java/nio/
DByteBuffer.annotated.java131 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer
135 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java386 public native void putChar(Object obj, long offset, char newValue); in putChar() method in Unsafe
577 public native void putChar(long address, char x); in putChar() method in Unsafe
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java112 out.putChar(msg.charAt(i)); in createFailChunk()
/libcore/ojluni/src/main/java/java/io/
DBits.java88 static void putChar(byte[] b, int off, char val) { in putChar() method in Bits
DObjectOutputStream.java1703 Bits.putChar(primVals, getFieldOffset(name, Character.TYPE), val); in put()
2038 Bits.putChar(buf, pos, (char) v); in writeChar()
2156 Bits.putChar(buf, pos, v[off++]); in writeChars()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java534 b.putChar('x'); in testRelativePositions()
755 b.putChar('H'); in testCharBufferSubSequence()
756 b.putChar('e'); in testCharBufferSubSequence()
757 b.putChar('l'); in testCharBufferSubSequence()
758 b.putChar('l'); in testCharBufferSubSequence()
759 b.putChar('o'); in testCharBufferSubSequence()
1043 b.putChar('a'); in testPutMethods()
1044 b.putChar(0, 'a'); in testPutMethods()
1088 b.putChar('a'); in testFailForPutMethods()
1093 b.putChar(0, 'a'); in testFailForPutMethods()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java143 public native void putChar(java.lang.Object obj, long offset, char newValue); in putChar() method in Unsafe
207 public native void putChar(long address, char x); in putChar() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java121 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer
125 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java133 public native void putChar(java.lang.Object obj, long offset, char newValue); in putChar() method in Unsafe
199 public native void putChar(long address, char x); in putChar() method in Unsafe
/libcore/ojluni/src/test/java/nio/Buffer/
DBasicByte.java315 b.putChar((char)1); in testHet()
316 b.putChar((char)Character.MAX_VALUE); in testHet()
1012 catchReadOnlyBuffer(b, () -> rb.putChar((char)1)); in test()
1013 catchReadOnlyBuffer(b, () -> rb.putChar(0, (char)1)); in test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1258 buf.putChar((char) 1); in testPutChar()
1275 buf.putChar(value); in testPutChar()
1283 buf.putChar(value); in testPutChar()
1295 buf.putChar(0, (char) 1); in testPutCharint()
1312 buf.putChar(i, value); in testPutCharint()
1319 buf.putChar(-1, value); in testPutCharint()
1325 buf.putChar(buf.limit() - nbytes + 1, value); in testPutCharint()
1334 ByteBuffer.allocateDirect(16).putChar(Integer.MAX_VALUE, 'h'); in testPutCharint()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java187 writebuf.putChar((char) (val + 64)); in testNewChannelOutputStream_inputNull()
229 writebuf.putChar((char) (val + 64)); in testNewChannelOutputStream()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java245 public native void putChar(Object o, long offset, char x); in putChar() method in Unsafe
425 public native void putChar(long address, char x); in putChar() method in Unsafe
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java281 src.putChar(' '); in timeByteBuffer_putChar()

12