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...]
  /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...]
  /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;
  /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...]
  /frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
bitstream_io.cpp 22 /* Note byteCount doesn't have to be multiple of 2 or 4 */
75 stream->byteCount = 0;
213 if (stream->byteCount + WORD_SIZE > stream->bufferSize)
217 stream->byteCount += WORD_SIZE;
222 ptr = stream->bitstreamBuffer + stream->byteCount;
226 /* NOTE: byteCount does not have to be multiple of 2 or 4 */
236 stream->byteCount += 4;
239 stream->byteCount += 2;
267 if (stream->byteCount + numbyte > stream->bufferSize)
271 stream->byteCount += numbyte
    [all...]
  /libcore/luni/src/main/java/libcore/net/
RawSocket.java 50 int offset, int byteCount);
52 int offset, int byteCount, int destPort, int timeoutMillis);
80 public int read(byte[] packet, int offset, int byteCount, int destPort,
86 Arrays.checkOffsetAndCount(packet.length, offset, byteCount);
93 return recvPacket(fd, packet, offset, byteCount, destPort,
103 public int write(byte[] destMac, byte[] packet, int offset, int byteCount) {
112 Arrays.checkOffsetAndCount(packet.length, offset, byteCount);
120 offset, byteCount);

Completed in 1885 milliseconds

1 2 3 4 5 6 7 8 9