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

1 2 3 4 5 6 7

  /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);
NioBufferIterator.java 44 public void skip(int byteCount) {
45 position += byteCount;
48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) {
49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount);
50 position += byteCount;
  /external/okhttp/src/main/java/libcore/io/
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 114 @Override public int read(byte[] buffer, int offset, int byteCount) throws IOException {
116 Arrays.checkOffsetAndCount(buffer.length, offset, 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);
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...]
DeflaterOutputStream.java 139 int byteCount;
140 while ((byteCount = def.deflate(buf)) != 0) {
141 out.write(buf, 0, byteCount);
177 int byteCount = def.deflate(buf);
178 out.write(buf, 0, byteCount);
188 * Compresses {@code byteCount} bytes of data from {@code buf} starting at
193 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException {
197 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
201 def.setInput(buffer, offset, byteCount);
216 int byteCount;
    [all...]
  /external/webkit/Tools/Scripts/
parse-malloc-history 72 my ($callCount, $byteCount);
76 ($callCount, $byteCount) = ($line =~ /(\d+) calls for (\d+) bytes/);
82 if (!$callCount || !$byteCount) {
84 ($byteCount) = ($line =~ /Leak: [x[:xdigit:]]* size=(\d+)/);
86 if ($byteCount) {
98 if (!$callCount || !$byteCount) {
100 ($byteCount) = ($line =~ /Key: (?:\d+), (\d+) bytes/);
101 if ($byteCount) {
117 next if (!$callCount || !$byteCount);
119 $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 16 private long byteCount;
38 byteCount = t.byteCount;
52 byteCount++;
80 byteCount += xBuf.length;
97 long bitLength = (byteCount << 3);
116 byteCount = 0;
  /external/skia/src/ports/
SkOSFile_brew.cpp 57 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f)
62 int err = IFILE_Seek((IFile*)f, _SEEK_CURRENT, (int)byteCount);
64 SkDEBUGF(("sk_fread: IFILE_Seek(%d) failed returned:%d\n", byteCount, err));
67 return byteCount;
70 return IFILE_Read((IFile*)f, buffer, byteCount);
73 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f)
76 return IFILE_Write((IFile*)f, buffer, byteCount);
SkOSFile_stdio.cpp 54 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f)
64 // ::fseek((FILE*)f, (long)(curr + byteCount), SEEK_SET);
65 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR);
68 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err));
71 return byteCount;
74 return ::fread(buffer, 1, byteCount, (FILE*)f);
77 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f)
80 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
  /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/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/java/io/
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 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 {
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 - copylength
    [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);
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
PointerInfo.java 87 private static ByteBuffer toByteBuffer(int byteCount, Buffer input) {
89 boolean convertWholeBuffer = (byteCount < 0);
94 byteCount = input2.limit() - position;
96 result = ByteBuffer.allocate(byteCount).order(input2.order());
97 for (int i = 0; i < byteCount; i++) {
105 byteCount = (input2.limit() - position) * 2;
107 result = ByteBuffer.allocate(byteCount).order(input2.order());
109 for (int i = 0; i < byteCount / 2; i++) {
117 byteCount = (input2.limit() - position)* 2;
119 result = ByteBuffer.allocate(byteCount).order(input2.order())
    [all...]
  /libcore/luni/src/main/java/java/nio/
HeapByteBuffer.java 62 public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
63 checkGetBounds(1, dst.length, dstOffset, byteCount);
64 System.arraycopy(backingArray, offset + position, dst, dstOffset, byteCount);
65 position += byteCount;
70 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
71 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.CHAR, order.needsSwap);
72 position += byteCount;
76 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount);
77 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.DOUBLE, order.needsSwap);
78 position += byteCount;
    [all...]
ReadWriteHeapByteBuffer.java 109 public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {
110 checkPutBounds(1, src.length, srcOffset, byteCount);
111 System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount);
112 position += byteCount;
117 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount);
118 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.CHAR, order.needsSwap);
119 position += byteCount;
123 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount);
124 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.DOUBLE, order.needsSwap);
125 position += byteCount;
    [all...]
  /external/yaffs2/yaffs2/
yaffs_packedtags2.c 50 pt->t.objectId, pt->t.chunkId, pt->t.byteCount,
61 t->chunkId, t->byteCount, t->chunkDeleted, t->serialNumber,
70 pt->t.byteCount = t->byteCount;
90 pt->t.byteCount = t->extraEquivalentObjectId;
92 pt->t.byteCount = t->extraFileLength;
94 pt->t.byteCount = 0;
155 t->byteCount = pt->t.byteCount;
164 t->byteCount = 0
    [all...]

Completed in 795 milliseconds

1 2 3 4 5 6 7