/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | IvParameterSpec.java | 52 * Creates a new <code>IvParameterSpec</code> instance with <code>byteCount</code> 58 * <code>byteCount</code> do not specify a valid chunk in the 61 * if <code>offset</code> or <code>byteCount</code> are negative. 63 public IvParameterSpec(byte[] iv, int offset, int byteCount) { argument 64 if ((iv == null) || (iv.length - offset < byteCount)) { 67 Arrays.checkOffsetAndCount(iv.length, offset, byteCount); 68 this.iv = new byte[byteCount]; 69 System.arraycopy(iv, offset, this.iv, 0, byteCount);
|
/libcore/luni/src/main/java/java/io/ |
H A D | FilterInputStream.java | 158 * Skips {@code byteCount} bytes in this stream. Subsequent 160 * used. This implementation skips {@code byteCount} bytes in the 170 public long skip(long byteCount) throws IOException { argument 171 return in.skip(byteCount);
|
H A D | InputStream.java | 231 * @param byteCount the number of bytes to skip. 236 public long skip(long byteCount) throws IOException { argument 237 return Streams.skipByReading(this, byteCount);
|
H A D | ObjectInput.java | 102 * Skips {@code byteCount} bytes on this stream. Less than {@code byteCount} byte are 110 public long skip(long byteCount) throws IOException; argument
|
H A D | ByteArrayInputStream.java | 196 * Skips {@code byteCount} bytes in this InputStream. Subsequent 198 * used. This implementation skips {@code byteCount} number of bytes in the 199 * target stream. It does nothing and returns 0 if {@code byteCount} is negative. 204 public synchronized long skip(long byteCount) { argument 205 if (byteCount <= 0) { 209 pos = this.count - pos < byteCount ? this.count : (int) (pos + byteCount);
|
H A D | FileInputStream.java | 178 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument 179 return IoBridge.read(fd, buffer, byteOffset, byteCount); 183 public long skip(long byteCount) throws IOException { argument 184 if (byteCount < 0) { 185 throw new IOException("byteCount < 0: " + byteCount); 190 Libcore.os.lseek(fd, byteCount, SEEK_CUR); 191 return byteCount; 195 return super.skip(byteCount);
|
H A D | FileOutputStream.java | 186 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument 187 IoBridge.write(fd, buffer, byteOffset, byteCount);
|
H A D | LineNumberInputStream.java | 225 * used. This implementation skips {@code byteCount} bytes in the 229 * @param byteCount 239 public long skip(long byteCount) throws IOException { argument 240 return Streams.skipByReading(this, byteCount);
|
H A D | BufferedInputStream.java | 246 * Reads at most {@code byteCount} bytes from this stream and stores them in 258 * if {@code offset < 0} or {@code byteCount < 0}, or if 259 * {@code offset + byteCount} is greater than the size of 266 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { argument 273 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 274 if (byteCount == 0) { 285 int copylength = count - pos >= byteCount ? byteCount : count - pos; 288 if (copylength == byteCount || localIn.available() == 0) { 292 required = byteCount 368 skip(long byteCount) argument [all...] |
H A D | BufferedReader.java | 467 * Skips {@code byteCount} bytes in this stream. Subsequent calls to 473 * @param byteCount 477 * if {@code byteCount < 0}. 485 public long skip(long byteCount) throws IOException { argument 486 if (byteCount < 0) { 487 throw new IllegalArgumentException("byteCount < 0: " + byteCount); 491 if (byteCount < 1) { 494 if (end - pos >= byteCount) { 495 pos += byteCount; [all...] |
H A D | DataInput.java | 115 * Reads {@code byteCount} bytes from this stream and stores them in the byte 116 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 118 * {@code byteCount} bytes have been read. If insufficient bytes are available, 127 * @param byteCount 133 * if {@code offset < 0} or {@code byteCount < 0}, or 134 * {@code offset + byteCount > dst.length}. 140 public abstract void readFully(byte[] dst, int offset, int byteCount) throws IOException; argument
|
H A D | DataInputStream.java | 119 public final void readFully(byte[] dst, int offset, int byteCount) throws IOException { argument 120 Streams.readFully(in, dst, offset, byteCount);
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | Adler32.java | 70 * starting from {@code offset} and reading {@code byteCount} bytes of data. 72 public void update(byte[] buf, int offset, int byteCount) { argument 73 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 74 adler = updateImpl(buf, offset, byteCount, adler); 77 private native long updateImpl(byte[] buf, int offset, int byteCount, long adler1); argument
|
H A D | CRC32.java | 71 * starting from {@code offset} and reading {@code byteCount} bytes of data. 73 public void update(byte[] buf, int offset, int byteCount) { argument 74 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 75 tbytes += byteCount; 76 crc = updateImpl(buf, offset, byteCount, crc); 79 private native long updateImpl(byte[] buf, int offset, int byteCount, long crc1); argument
|
H A D | CheckedInputStream.java | 106 * Skip up to {@code byteCount} bytes of data on the underlying input 109 * @param byteCount the number of bytes to skip. 114 public long skip(long byteCount) throws IOException { argument 115 return Streams.skipByReading(this, byteCount);
|
H A D | DeflaterOutputStream.java | 137 int byteCount; 138 while ((byteCount = def.deflate(buf)) != 0) { 139 out.write(buf, 0, byteCount); 175 int byteCount = def.deflate(buf); 176 out.write(buf, 0, byteCount); 186 * Compresses {@code byteCount} bytes of data from {@code buf} starting at 191 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { argument 195 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 199 def.setInput(buffer, offset, byteCount); 214 int byteCount; [all...] |
H A D | InflaterOutputStream.java | 139 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { argument 141 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 142 inf.setInput(bytes, offset, byteCount);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | BufferIterator.java | 32 * Skips forwards or backwards {@code byteCount} bytes from the current position. 34 public abstract void skip(int byteCount); argument 37 * Copies {@code byteCount} bytes from the current position into {@code dst}, starting at 38 * {@code dstOffset}, and advances the current position {@code byteCount} bytes. 40 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount); argument
|
H A D | HeapBufferIterator.java | 30 private final int byteCount; field in class:HeapBufferIterator 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { argument 38 this.byteCount = byteCount; 46 public void skip(int byteCount) { argument 47 position += byteCount; 50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { argument 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 52 position += byteCount; 68 final int byteCount 83 iterator(byte[] buffer, int offset, int byteCount, ByteOrder order) argument [all...] |
H A D | NioBufferIterator.java | 44 public void skip(int byteCount) { argument 45 position += byteCount; 48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { argument 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 50 position += byteCount;
|
H A D | Streams.java | 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException { argument 70 if (byteCount == 0) { 79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount); 80 while (byteCount > 0) { 81 int bytesRead = in.read(dst, offset, byteCount); 86 byteCount -= bytesRead; 139 * {@code byteCount} bytes have been read. 148 public static long skipByReading(InputStream in, long byteCount) throws IOException { argument 156 while (skipped < byteCount) { [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | IoVec.java | 88 void didTransfer(int byteCount) { argument 89 for (int i = 0; byteCount > 0 && i < bufferCount; ++i) { 91 if (byteCounts[i] < byteCount) { 93 byteCount -= byteCounts[i]; 95 b.position((direction == Direction.WRITEV ? b.position() : 0) + byteCount); 96 byteCount = 0;
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherInputStream.java | 96 int byteCount; 98 if ((byteCount = in.read(inputBuffer)) == -1) { 107 outputBuffer = cipher.update(inputBuffer, 0, byteCount); 146 public long skip(long byteCount) throws IOException { argument 147 return Streams.skipByReading(this, byteCount);
|
/libcore/luni/src/main/java/libcore/net/ |
H A D | RawSocket.java | 39 int byteCount); 41 int offset, int byteCount, int destPort, int timeoutMillis); 65 public int read(byte[] packet, int offset, int byteCount, int destPort, argument 71 Arrays.checkOffsetAndCount(packet.length, offset, byteCount); 78 return recvPacket(fd, packet, offset, byteCount, destPort, 88 public int write(byte[] destMac, byte[] packet, int offset, int byteCount) { argument 97 Arrays.checkOffsetAndCount(packet.length, offset, byteCount); 105 byteCount); 37 sendPacket(FileDescriptor fd, String interfaceName, byte[] destMac, byte[] packet, int offset, int byteCount) argument 40 recvPacket(FileDescriptor fd, byte[] packet, int offset, int byteCount, int destPort, int timeoutMillis) argument
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLInputStream.java | 77 public long skip(long byteCount) throws IOException { argument 78 return is.skip(byteCount);
|