Searched refs:MAX_BLOCK_SIZE (Results 1 – 4 of 4) sorted by relevance
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectOutputStream.java | 1799 private static final int MAX_BLOCK_SIZE = 1024; field in ObjectOutputStream.BlockDataOutputStream 1806 private final byte[] buf = new byte[MAX_BLOCK_SIZE]; 1897 if (pos >= MAX_BLOCK_SIZE) { in write() 1941 if (pos >= MAX_BLOCK_SIZE) { in write() 1944 if (len >= MAX_BLOCK_SIZE && !copy && pos == 0) { in write() 1946 writeBlockHeader(MAX_BLOCK_SIZE); in write() 1947 out.write(b, off, MAX_BLOCK_SIZE); in write() 1948 off += MAX_BLOCK_SIZE; in write() 1949 len -= MAX_BLOCK_SIZE; in write() 1951 int wlen = Math.min(len, MAX_BLOCK_SIZE - pos); in write() [all …]
|
D | ObjectInputStream.java | 2518 private static final int MAX_BLOCK_SIZE = 1024; field in ObjectInputStream.BlockDataInputStream 2527 private final byte[] buf = new byte[MAX_BLOCK_SIZE]; 2687 in.read(buf, 0, Math.min(unread, MAX_BLOCK_SIZE)); in refill() 2794 int nread = (int) Math.min(remain, MAX_BLOCK_SIZE); in skip() 2865 int nread = in.read(buf, 0, Math.min(len, MAX_BLOCK_SIZE)); in read() 3037 int span = Math.min(endoff - off, MAX_BLOCK_SIZE); in readBooleans() 3058 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 1); in readChars() 3080 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 1); in readShorts() 3102 int span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 2); in readInts() 3124 span = Math.min(endoff - off, MAX_BLOCK_SIZE >> 2); in readFloats() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectOutputStream.java | 458 private static final int MAX_BLOCK_SIZE = 1024; // 0x400 field in ObjectOutputStream.BlockDataOutputStream
|
D | ObjectInputStream.java | 522 private static final int MAX_BLOCK_SIZE = 1024; // 0x400 field in ObjectInputStream.BlockDataInputStream
|