Searched refs:scratch (Results 1 - 5 of 5) sorted by relevance
/libcore/luni/src/main/java/java/io/ |
H A D | DataOutputStream.java | 34 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 D | RandomAccessFile.java | 57 private final byte[] scratch = new byte[8]; field in class:RandomAccessFile 254 return (read(scratch, 0, 1) != -1) ? scratch[0] & 0xff : -1; 435 readFully(scratch, 0, SizeOf.INT); 436 return Memory.peekInt(scratch, 0, ByteOrder.BIG_ENDIAN); 496 readFully(scratch, 0, SizeOf.LONG); 497 return Memory.peekLong(scratch, 0, ByteOrder.BIG_ENDIAN); 513 readFully(scratch, 0, SizeOf.SHORT); 514 return Memory.peekShort(scratch, 0, ByteOrder.BIG_ENDIAN); 706 scratch[ [all...] |
H A D | DataInputStream.java | 37 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 D | TestSSLEnginePair.java | 88 ByteBuffer scratch = ByteBuffer.allocate(applicationBufferSize); 110 scratch, 117 scratch, 142 ByteBuffer scratch, 168 SSLEngineResult unwrapResult = engine.unwrap(input, scratch); 170 assertEquals(0, scratch.position()); 139 handshakeCompleted(SSLEngine engine, ByteBuffer output, ByteBuffer input, ByteBuffer scratch, boolean[] finished) argument
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | GZIPInputStream.java | 214 CRC32 crc, byte[] scratch) throws IOException { 225 int length = Memory.peekShort(scratch, 0, ByteOrder.LITTLE_ENDIAN) & 0xffff; 227 int max = length > scratch.length ? scratch.length : length; 228 int result = in.read(scratch, 0, max); 233 crc.update(scratch, 0, result); 246 short crc16 = Memory.peekShort(scratch, 0, ByteOrder.LITTLE_ENDIAN); 213 parseGzipHeader(InputStream in, byte[] header, CRC32 crc, byte[] scratch) argument
|
Completed in 226 milliseconds