HomeSort by relevance Sort by last modified time
    Searched refs:byteCount (Results 1 - 25 of 204) sorted by null

1 2 3 4 5 6 7 8 9

  /libcore/luni/src/main/java/libcore/io/
HeapBufferIterator.java 30 private final int byteCount;
35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) {
38 this.byteCount = byteCount;
46 public void skip(int byteCount) {
47 position += byteCount;
50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) {
51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount);
52 position += byteCount;
68 final int byteCount = intCount * SizeOf.INT
    [all...]
BufferIterator.java 32 * Skips forwards or backwards {@code byteCount} bytes from the current position.
34 public abstract void skip(int byteCount);
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);
  /libcore/luni/src/main/java/java/util/zip/
CRC32.java 71 * starting from {@code offset} and reading {@code byteCount} bytes of data.
73 public void update(byte[] buf, int offset, int byteCount) {
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);
Adler32.java 70 * starting from {@code offset} and reading {@code byteCount} bytes of data.
72 public void update(byte[] buf, int offset, int byteCount) {
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);
Inflater.java 209 * Inflates up to {@code byteCount} bytes from the current input and stores them in
217 public synchronized int inflate(byte[] buf, int offset, int byteCount) throws DataFormatException {
218 Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
228 int result = inflateImpl(buf, offset, byteCount, streamHandle);
235 private native int inflateImpl(byte[] buf, int offset, int byteCount, long handle);
279 * starting at {@code offset} and continuing for {@code byteCount} bytes. See {@link
282 public synchronized void setDictionary(byte[] dictionary, int offset, int byteCount) {
284 Arrays.checkOffsetAndCount(dictionary.length, offset, byteCount);
285 setDictionaryImpl(dictionary, offset, byteCount, streamHandle);
288 private native void setDictionaryImpl(byte[] dictionary, int offset, int byteCount, long handle)
    [all...]
DeflaterInputStream.java 109 * Reads up to {@code byteCount} bytes of compressed data into a byte buffer. The result will be bytes of compressed
114 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
116 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
117 if (byteCount == 0) {
126 while (count < byteCount && !def.finished()) {
136 int bytesDeflated = def.deflate(buf, 0, Math.min(buf.length, byteCount - count));
156 public long skip(long byteCount) throws IOException {
157 byteCount = Math.min(Integer.MAX_VALUE, byteCount);
158 return Streams.skipByReading(this, byteCount);
    [all...]
Deflater.java 41 * int byteCount = deflater.deflate(buf);
42 * baos.write(buf, 0, byteCount);
211 public synchronized int deflate(byte[] buf, int offset, int byteCount) {
212 return deflateImpl(buf, offset, byteCount, flushParm);
221 * equals {@code byteCount}, the number of bytes of input to be flushed
228 public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) {
232 return deflateImpl(buf, offset, byteCount, flush);
235 private synchronized int deflateImpl(byte[] buf, int offset, int byteCount, int flush) {
237 Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
241 return deflateImpl(buf, offset, byteCount, streamHandle, flush)
    [all...]
CheckedInputStream.java 71 * 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 {
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 {
106 return Streams.skipByReading(this, byteCount);
DeflaterOutputStream.java 116 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 {
174 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
178 def.setInput(buffer, offset, byteCount);
192 int byteCount;
    [all...]
  /libcore/luni/src/main/java/java/io/
InputStream.java 166 * 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 {
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
178 for (int i = 0; i < byteCount; ++i) {
192 return byteCount;
221 * @param byteCount the number of bytes to skip.
226 public long skip(long byteCount) throws IOException {
227 return Streams.skipByReading(this, byteCount);
    [all...]
ByteArrayInputStream.java 144 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) {
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) {
183 if (byteCount <= 0)
    [all...]
ObjectInput.java 68 * 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;
91 * Skips {@code byteCount} bytes on this stream. Less than {@code byteCount} byte are
99 public long skip(long byteCount) throws IOException;
PushbackInputStream.java 150 * Reads up to {@code byteCount} bytes from this stream and stores them in
153 * are required. Blocks until {@code byteCount} bytes have been read, the end of
158 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
166 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
170 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
174 copyLength = (buf.length - pos >= byteCount) ? byteCount : buf.length - pos;
182 if (copyLength == byteCount) {
183 return byteCount;
    [all...]
FilterInputStream.java 117 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
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 {
151 return in.skip(byteCount);
FileInputStream.java 178 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
179 return IoBridge.read(fd, buffer, byteOffset, byteCount);
183 public long skip(long byteCount) throws IOException {
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);
BufferedInputStream.java 245 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
252 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
253 if (byteCount == 0) {
264 int copylength = count - pos >= byteCount ? byteCount : count - pos;
267 if (copylength == byteCount || localIn.available() == 0) {
271 required = byteCount - copylength;
273 required = byteCount;
285 return required == byteCount ? -1 : byteCount - required
    [all...]
LineNumberInputStream.java 141 * 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 {
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) throws IOException
    [all...]