Searched defs:byteCount (Results 1 - 25 of 70) sorted by relevance

123

/libcore/luni/src/main/java/javax/crypto/spec/
H A DGCMParameterSpec.java43 * {@code offset} and {@code byteCount} do not specify a valid
59 * (IV) of {@code byteCount} bytes from the specified buffer {@code iv}
63 * {@code offset} and {@code byteCount} do not specify a valid
66 * {@code byteCount} are negative.
68 public GCMParameterSpec(int tagLen, byte[] iv, int offset, int byteCount) { argument
76 Arrays.checkOffsetAndCount(iv.length, offset, byteCount);
81 this.iv = Arrays.copyOfRange(iv, offset, offset + byteCount);
H A DIvParameterSpec.java52 * 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 DFilterInputStream.java117 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
118 return in.read(buffer, byteOffset, byteCount);
138 * Skips {@code byteCount} bytes in this stream. Subsequent
140 * used. This implementation skips {@code byteCount} bytes in the
150 public long skip(long byteCount) throws IOException { argument
151 return in.skip(byteCount);
H A DInputStream.java166 * Reads up to {@code byteCount} bytes from this stream and stores them in
172 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
176 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
178 for (int i = 0; i < byteCount; ++i) {
192 return byteCount;
212 * Skips at most {@code byteCount} bytes in this stream. The number of actual
213 * bytes skipped may be anywhere between 0 and {@code byteCount}. If
214 * {@code byteCount} i
228 skip(long byteCount) argument
[all...]
H A DObjectInput.java68 * Reads up to {@code byteCount} bytes from this stream and stores them in
76 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException; argument
91 * Skips {@code byteCount} bytes on this stream. Less than {@code byteCount} byte are
99 public long skip(long byteCount) throws IOException; argument
H A DSequenceInputStream.java149 * Reads up to {@code byteCount} bytes from this sequence of input streams and
157 * requested by {@code byteCount}, it will not retry to read more on its own
166 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
179 int result = in.read(buffer, byteOffset, byteCount);
H A DStringBufferInputStream.java81 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { argument
85 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
86 if (byteCount == 0) {
90 int copylen = count - pos < byteCount ? count - pos : byteCount;
H A DByteArrayInputStream.java144 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { argument
145 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
151 if (byteCount == 0) {
155 int copylen = this.count - pos < byteCount ? this.count - pos : byteCount;
174 * Skips {@code byteCount} bytes in this InputStream. Subsequent
176 * used. This implementation skips {@code byteCount} number of bytes in the
177 * target stream. It does nothing and returns 0 if {@code byteCount} is negative.
182 public synchronized long skip(long byteCount) { argument
183 if (byteCount <
[all...]
H A DFileInputStream.java176 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 return IoBridge.read(fd, buffer, byteOffset, byteCount);
181 public long skip(long byteCount) throws IOException { argument
182 if (byteCount < 0) {
183 throw new IOException("byteCount < 0: " + byteCount);
188 Libcore.os.lseek(fd, byteCount, SEEK_CUR);
189 return byteCount;
193 return super.skip(byteCount);
H A DFileOutputStream.java185 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
186 IoBridge.write(fd, buffer, byteOffset, byteCount);
H A DLineNumberInputStream.java141 * Reads up to {@code byteCount} bytes from the filtered stream and stores
152 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
159 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
160 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
161 for (int i = 0; i < byteCount; ++i) {
176 return byteCount;
214 * used. This implementation skips {@code byteCount} bytes in the
218 * @param byteCount
228 public long skip(long byteCount) throw argument
[all...]
H A DBufferedInputStream.java252 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
259 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
260 if (byteCount == 0) {
271 int copylength = count - pos >= byteCount ? byteCount : count - pos;
274 if (copylength == byteCount || localIn.available() == 0) {
278 required = byteCount - copylength;
280 required = byteCount;
292 return required == byteCount ? -1 : byteCount
354 skip(long byteCount) argument
[all...]
/libcore/luni/src/main/java/java/security/
H A DDigestInputStream.java99 * Reads up to {@code byteCount} bytes into {@code buffer}, starting at
112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
113 int bytesRead = in.read(buffer, byteOffset, byteCount);
/libcore/luni/src/main/java/java/util/zip/
H A DAdler32.java70 * 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 DCRC32.java71 * 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 DCheckedInputStream.java71 * Reads up to {@code byteCount} bytes of data from the underlying input stream, storing it
81 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
82 int bytesRead = in.read(buffer, byteOffset, byteCount);
97 * Skip up to {@code byteCount} bytes of data on the underlying input
100 * @param byteCount the number of bytes to skip.
105 public long skip(long byteCount) throws IOException { argument
106 return Streams.skipByReading(this, byteCount);
H A DDeflaterOutputStream.java116 int byteCount;
117 while ((byteCount = def.deflate(buf)) != 0) {
118 out.write(buf, 0, byteCount);
154 int byteCount = def.deflate(buf);
155 out.write(buf, 0, byteCount);
165 * Compresses {@code byteCount} bytes of data from {@code buf} starting at
170 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { argument
174 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
178 def.setInput(buffer, offset, byteCount);
195 int byteCount;
[all...]
H A DInflaterOutputStream.java141 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { argument
143 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount);
144 inf.setInput(bytes, offset, byteCount);
/libcore/luni/src/main/java/libcore/io/
H A DBufferIterator.java32 * 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 DHeapBufferIterator.java30 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 DNioBufferIterator.java44 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 DStreams.java64 * 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;
138 * Skip <b>at most</b> {@code byteCount} bytes from {@code in} by calling read
149 public static long skipByReading(InputStream in, long byteCount) throws IOException { argument
157 while (skipped < byteCount) {
[all...]
/libcore/luni/src/main/java/java/nio/
H A DIoVec.java88 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/libcore/net/url/
H A DFtpURLInputStream.java77 public long skip(long byteCount) throws IOException { argument
78 return is.skip(byteCount);
/libcore/libart/src/main/java/java/lang/
H A DStringFactory.java52 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { argument
53 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset());
56 public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); argument
58 public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws UnsupportedEncodingException { argument
59 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName));
67 public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { argument
68 if ((offset | byteCount) < 0 || byteCount > data.length - offset) {
69 throw new StringIndexOutOfBoundsException(data.length, offset, byteCount);
79 char[] v = new char[byteCount];
[all...]

Completed in 2431 milliseconds

123