/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;
|
/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 | 112 @Override public int read(byte[] buffer, int offset, int byteCount) throws IOException { 114 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 115 if (byteCount == 0) { 124 while (count < byteCount && !def.finished()) { 134 int bytesDeflated = def.deflate(buf, 0, Math.min(buf.length, byteCount - count)); 154 public long skip(long byteCount) throws IOException { 155 byteCount = Math.min(Integer.MAX_VALUE, byteCount); 156 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 | 137 int byteCount; 138 while ((byteCount = def.deflate(buf)) != 0) { 139 out.write(buf, 0, byteCount); 175 int byteCount = def.deflate(buf); 176 out.write(buf, 0, byteCount); 186 * Compresses {@code byteCount} bytes of data from {@code buf} starting at 191 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { 195 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 199 def.setInput(buffer, offset, byteCount); 214 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/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 | 65 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) 70 int err = IFILE_Seek((IFile*)f, _SEEK_CURRENT, (int)byteCount); 72 SkDEBUGF(("sk_fread: IFILE_Seek(%d) failed returned:%d\n", byteCount, err)); 75 return byteCount; 78 return IFILE_Read((IFile*)f, buffer, byteCount); 81 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) 84 return IFILE_Write((IFile*)f, buffer, byteCount);
|
SkOSFile_stdio.cpp | 62 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) 72 // ::fseek((FILE*)f, (long)(curr + byteCount), SEEK_SET); 73 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR); 76 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err)); 79 return byteCount; 82 return ::fread(buffer, 1, byteCount, (FILE*)f); 85 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) 88 return ::fwrite(buffer, 1, byteCount, (FILE*)f);
|
/frameworks/base/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/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 | 39 int byteCount); 41 int offset, int byteCount, int destPort, int timeoutMillis); 65 public int read(byte[] packet, int offset, int byteCount, int destPort, 71 Arrays.checkOffsetAndCount(packet.length, offset, byteCount); 78 return recvPacket(fd, packet, offset, byteCount, destPort, 88 public int write(byte[] destMac, byte[] packet, int offset, int byteCount) { 97 Arrays.checkOffsetAndCount(packet.length, offset, byteCount); 105 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 | 112 public ByteBuffer put(byte[] src, int srcOffset, int byteCount) { 113 checkPutBounds(1, src.length, srcOffset, byteCount); 114 System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount); 115 position += byteCount; 120 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount); 121 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.CHAR, order.needsSwap); 122 position += byteCount; 126 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount); 127 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.DOUBLE, order.needsSwap); 128 position += byteCount; [all...] |
IoVec.java | 88 void didTransfer(int byteCount) { 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;
|
/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...] |
yaffs_packedtags1.c | 8 pt->byteCount = t->byteCount; 31 t->byteCount = pt->byteCount;
|