/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);
|
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(buffer, byteOffset + count, byteCount - count); 159 public long skip(long byteCount) throws IOException { 160 byteCount = Math.min(Integer.MAX_VALUE, byteCount); 161 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);
|
Inflater.java | 218 * Inflates up to {@code byteCount} bytes from the current input and stores them in 226 public synchronized int inflate(byte[] buf, int offset, int byteCount) throws DataFormatException { 227 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 237 int result = inflateImpl(buf, offset, byteCount, streamHandle); 244 private native int inflateImpl(byte[] buf, int offset, int byteCount, long handle); 288 * starting at {@code offset} and continuing for {@code byteCount} bytes. See {@link 291 public synchronized void setDictionary(byte[] dictionary, int offset, int byteCount) { 293 Arrays.checkOffsetAndCount(dictionary.length, offset, byteCount); 294 setDictionaryImpl(dictionary, offset, byteCount, streamHandle); 297 private native void setDictionaryImpl(byte[] dictionary, int offset, int byteCount, long handle) [all...] |
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); 195 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; 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} is negative, this method does nothing and returns 0, bu [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);
|
/external/okhttp/okio/src/main/java/okio/ |
BufferedSource.java | 37 * Returns when the buffer contains at least {@code byteCount} bytes. Throws 41 void require(long byteCount) throws IOException; 65 * Reads and discards {@code byteCount} bytes from this source. Throws an 69 void skip(long byteCount) throws IOException; 71 /** Removes {@code byteCount} bytes from this and returns them as a byte string. */ 72 ByteString readByteString(long byteCount) throws IOException; 75 * Removes {@code byteCount} bytes from this, decodes them as UTF-8 and 78 String readUtf8(long byteCount) throws IOException;
|
SegmentPool.java | 33 long byteCount; 44 byteCount -= Segment.SIZE; 54 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. 55 byteCount += Segment.SIZE;
|
RealBufferedSource.java | 43 @Override public long read(OkBuffer sink, long byteCount) throws IOException { 44 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 52 long toRead = Math.min(byteCount, buffer.size); 61 @Override public void require(long byteCount) throws IOException { 63 while (buffer.size < byteCount) { 73 @Override public ByteString readByteString(long byteCount) throws IOException { 74 require(byteCount); 75 return buffer.readByteString(byteCount); [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
parse-malloc-history | 74 my ($callCount, $byteCount); 78 ($callCount, $byteCount) = ($line =~ /(\d+) calls for (\d+) bytes/); 84 if (!$callCount || !$byteCount) { 86 ($byteCount) = ($line =~ /Leak: [x[:xdigit:]]* size=(\d+)/); 88 if ($byteCount) { 100 if (!$callCount || !$byteCount) { 102 ($byteCount) = ($line =~ /Key: (?:\d+), (\d+) bytes/); 103 if ($byteCount) { 119 next if (!$callCount || !$byteCount); 121 $byteCountTotal += $byteCount; [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/ |
BridgeBufferIterator.java | 43 public void skip(int byteCount) { 44 int newPosition = mByteBuffer.position() + byteCount; 50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 51 assert dst.length >= dstOffset + byteCount; 52 mByteBuffer.get(dst, dstOffset, byteCount);
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
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) { 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);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
GeneralDigest.java | 17 private long byteCount; 45 byteCount = t.byteCount; 59 byteCount++; 87 byteCount += xBuf.length; 104 long bitLength = (byteCount << 3); 123 byteCount = 0;
|
/frameworks/base/core/java/android/content/pm/ |
LimitedLengthInputStream.java | 68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { 74 Arrays.checkOffsetAndCount(arrayLength, offset, byteCount); 76 if (mOffset > Long.MAX_VALUE - byteCount) { 77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); 80 if (mOffset + byteCount > mEnd) { 81 byteCount = (int) (mEnd - mOffset); 84 final int numRead = super.read(buffer, offset, byteCount);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_byte_stream.c | 87 u32 byteCount,initByteCount; 107 zeroCount = byteCount = 2; 113 byteCount++; 115 if (byteCount == len) 130 initByteCount = byteCount; 139 byteCount++; 151 byteCount - initByteCount - zeroCount - 1; 162 if (byteCount == len) 164 pStrmData->strmBuffSize = byteCount - initByteCount - zeroCount;
|
/frameworks/base/core/java/com/android/internal/util/ |
SizedInputStream.java | 49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 52 } else if (byteCount > mLength) { 53 byteCount = (int) mLength; 56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
|
/libcore/luni/src/main/java/java/nio/ |
ByteArrayBuffer.java | 107 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { 108 checkGetBounds(1, dst.length, dstOffset, byteCount); 109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); 110 position += byteCount; 115 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount); 116 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.CHAR, order.needsSwap); 117 position += byteCount; 121 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount); 122 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, arrayOffset + position, SizeOf.DOUBLE, order.needsSwap); 123 position += byteCount; [all...] |