Searched refs:scratch (Results 1 - 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/io/
H A DDataOutputStream.java34 private final byte[] scratch = new byte[8]; field in class:DataOutputStream
179 Memory.pokeInt(scratch, 0, val, ByteOrder.BIG_ENDIAN);
180 out.write(scratch, 0, SizeOf.INT);
185 Memory.pokeLong(scratch, 0, val, ByteOrder.BIG_ENDIAN);
186 out.write(scratch, 0, SizeOf.LONG);
191 Memory.pokeShort(scratch, 0, (short) val, ByteOrder.BIG_ENDIAN);
192 out.write(scratch, 0, SizeOf.SHORT);
H A DRandomAccessFile.java58 private final byte[] scratch = new byte[8]; field in class:RandomAccessFile
255 return (read(scratch, 0, 1) != -1) ? scratch[0] & 0xff : -1;
436 readFully(scratch, 0, SizeOf.INT);
437 return Memory.peekInt(scratch, 0, ByteOrder.BIG_ENDIAN);
497 readFully(scratch, 0, SizeOf.LONG);
498 return Memory.peekLong(scratch, 0, ByteOrder.BIG_ENDIAN);
514 readFully(scratch, 0, SizeOf.SHORT);
515 return Memory.peekShort(scratch, 0, ByteOrder.BIG_ENDIAN);
707 scratch[
[all...]
H A DDataInputStream.java37 private final byte[] scratch = new byte[8]; field in class:DataInputStream
103 Streams.readFully(in, scratch, 0, SizeOf.INT);
104 return Memory.peekInt(scratch, 0, ByteOrder.BIG_ENDIAN);
147 Streams.readFully(in, scratch, 0, SizeOf.LONG);
148 return Memory.peekLong(scratch, 0, ByteOrder.BIG_ENDIAN);
152 Streams.readFully(in, scratch, 0, SizeOf.SHORT);
153 return Memory.peekShort(scratch, 0, ByteOrder.BIG_ENDIAN);
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java74 ByteBuffer scratch = ByteBuffer.allocate(applicationBufferSize);
96 scratch);
102 scratch);
122 ByteBuffer scratch) throws IOException {
146 SSLEngineResult unwrapResult = engine.unwrap(input, scratch);
148 assertEquals(0, scratch.position());
119 handshakeCompleted(SSLEngine engine, ByteBuffer output, ByteBuffer input, ByteBuffer scratch) argument

Completed in 67 milliseconds