/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
lmapibuf.h | 13 NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount,LPVOID *Buffer); 16 NET_API_STATUS WINAPI NetApiBufferSize(LPVOID Buffer,LPDWORD ByteCount); 17 NET_API_STATUS WINAPI NetapipBufferAllocate(DWORD ByteCount,LPVOID *Buffer);
|
/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);
|
/external/okhttp/okio/okio/src/main/java/okio/ |
RealBufferedSource.java | 44 @Override public long read(Buffer sink, long byteCount) throws IOException { 46 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 54 long toRead = Math.min(byteCount, buffer.size); 63 @Override public void require(long byteCount) throws IOException { 64 if (!request(byteCount)) throw new EOFException(); 67 @Override public boolean request(long byteCount) throws IOException { 68 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount) [all...] |
Segment.java | 103 * segment contains the data in {@code [pos..pos+byteCount)}. The second 104 * segment contains the data in {@code [pos+byteCount..limit)}. This can be 109 public Segment split(int byteCount) { 110 if (byteCount <= 0 || byteCount > limit - pos) throw new IllegalArgumentException(); 112 prefix.limit = prefix.pos + byteCount; 113 pos += byteCount; 125 int byteCount = limit - pos; 127 if (byteCount > availableByteCount) return; // Cannot compact: not enough writable space. 128 writeTo(prev, byteCount); [all...] |
Buffer.java | 73 @Override public void write(byte[] data, int offset, int byteCount) { 74 Buffer.this.write(data, offset, byteCount); 101 @Override public void require(long byteCount) throws EOFException { 102 if (size < byteCount) throw new EOFException(); 105 @Override public boolean request(long byteCount) { 106 return size >= byteCount; 116 @Override public int read(byte[] sink, int offset, int byteCount) { 117 return Buffer.this.read(sink, offset, byteCount); 139 * Copy {@code byteCount} bytes from this, starting at {@code offset}, to 142 public Buffer copyTo(OutputStream out, long offset, long byteCount) throws IOException [all...] |
RealBufferedSink.java | 42 @Override public void write(Buffer source, long byteCount) 45 buffer.write(source, byteCount); 93 @Override public BufferedSink write(byte[] source, int offset, int byteCount) throws IOException { 95 buffer.write(source, offset, byteCount); 109 @Override public BufferedSink write(Source source, long byteCount) throws IOException { 110 while (byteCount > 0) { 111 long read = source.read(buffer, byteCount); 113 byteCount -= read; 175 long byteCount = buffer.completeSegmentByteCount(); 176 if (byteCount > 0) sink.write(buffer, byteCount) [all...] |
Util.java | 27 public static void checkOffsetAndCount(long size, long offset, long byteCount) { 28 if ((offset | byteCount) < 0 || offset > size || size - offset < byteCount) { 30 String.format("size=%s offset=%s byteCount=%s", size, offset, byteCount)); 74 byte[] a, int aOffset, byte[] b, int bOffset, int byteCount) { 75 for (int i = 0; i < byteCount; i++) {
|
SegmentPool.java | 31 static long byteCount; 42 byteCount -= Segment.SIZE; 53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. 54 byteCount += Segment.SIZE;
|
GzipSink.java | 65 @Override public void write(Buffer source, long byteCount) throws IOException { 66 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 67 if (byteCount == 0) return; 69 updateCrc(source, byteCount); 70 deflaterSink.write(source, byteCount); 130 private void updateCrc(Buffer buffer, long byteCount) { 131 for (Segment head = buffer.head; byteCount > 0; head = head.next) { 132 int segmentLength = (int) Math.min(byteCount, head.limit - head.pos) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
GeneralDigest.java | 19 private long byteCount; 43 byteCount = Pack.bigEndianToLong(encodedState, 8); 51 byteCount = t.byteCount; 65 byteCount++; 110 byteCount += len; 115 long bitLength = (byteCount << 3); 134 byteCount = 0; 147 Pack.longToBigEndian(byteCount, state, 8);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
FaultHidingSink.java | 16 @Override public void write(Buffer source, long byteCount) throws IOException { 18 source.skip(byteCount); 22 super.write(source, byteCount);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
SICBlockCipher.java | 26 private int byteCount; 42 this.byteCount = 0; 102 if (byteCount == 0) 106 return (byte)(counterOut[byteCount++] ^ in); 109 byte rv = (byte)(counterOut[byteCount++] ^ in); 111 if (byteCount == counter.length) 113 byteCount = 0; 178 long numBlocks = (n + byteCount) / blockSize; 196 byteCount = (int)((n + byteCount) - (blockSize * numBlocks)) [all...] |
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ |
ARDBitrateTracker.m | 36 - (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount { 38 if (_prevTime && (byteCount > _prevByteCount)) { 39 _bitrate = (byteCount - _prevByteCount) * 8 / (currentTime - _prevTime); 41 _prevByteCount = byteCount;
|
/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);
|
/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/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);
|
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;
|
Streams.java | 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException { 70 if (byteCount == 0) { 79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount); 80 while (byteCount > 0) { 81 int bytesRead = in.read(dst, offset, byteCount); 86 byteCount -= bytesRead; 138 * Skip <b>at most</b> {@code byteCount} bytes from {@code in} by calling read 149 public static long skipByReading(InputStream in, long byteCount) throws IOException { 157 while (skipped < byteCount) { [all...] |
ForwardingOs.java | 111 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 114 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 115 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return os.mmap(address, byteCount, prot, flags, fd, offset); } 116 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 117 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
Posix.java | 105 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 108 public native void mlock(long address, long byteCount) throws ErrnoException; 109 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 110 public native void msync(long address, long byteCount, int flags) throws ErrnoException; 111 public native void munlock(long address, long byteCount) throws ErrnoException; 112 public native void munmap(long address, long byteCount) throws ErrnoException; 131 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 133 return preadBytes(fd, bytes, byteOffset, byteCount, offset); 135 private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 149 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MD5Calculator.java | 35 int byteCount; 36 while ((byteCount = in.read(bytes)) > 0) { 37 digester.update(bytes, 0, byteCount);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
RecyclableBufferedInputStream.java | 249 * Reads at most {@code byteCount} bytes from this stream and stores them in 261 * if {@code offset < 0} or {@code byteCount < 0}, or if 262 * {@code offset + byteCount} is greater than the size of 269 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { 275 //Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 276 if (byteCount == 0) { 287 int copylength = count - pos >= byteCount ? byteCount : count - pos; 290 if (copylength == byteCount || localIn.available() == 0) { 294 required = byteCount - copylength [all...] |
/external/skia/src/ports/ |
SkOSFile_stdio.cpp | 116 size_t sk_fread(void* buffer, size_t byteCount, FILE* f) { 124 int err = fseek(f, (long)byteCount, SEEK_CUR); 127 byteCount, curr, feof(f), ferror(f), err)); 130 return byteCount; 133 return fread(buffer, 1, byteCount, f); 136 size_t sk_fwrite(const void* buffer, size_t byteCount, FILE* f) { 138 return fwrite(buffer, 1, byteCount, f); 154 bool sk_fseek(FILE* f, size_t byteCount) { 155 int err = fseek(f, (long)byteCount, SEEK_SET); 159 bool sk_fmove(FILE* f, long byteCount) { [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
CachedInputStream.java | 215 public long skip(long byteCount) throws IOException { 220 return in.skip(byteCount); 224 if (totalSkip > byteCount) { 225 totalSkip = byteCount; 228 byteCount -= totalSkip; 229 while (byteCount > 0) { 238 int toRead = (int) (byteCount > leftInBuffer ? leftInBuffer : byteCount); 243 byteCount -= reads; 246 if (byteCount > 0) [all...] |
/libcore/libart/src/main/java/java/lang/ |
StringFactory.java | 52 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { 53 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); 56 public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); 58 public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws UnsupportedEncodingException { 59 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); 67 public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { 68 if ((offset | byteCount) < 0 || byteCount > data.length - offset) { 69 throw new StringIndexOutOfBoundsException(data.length, offset, byteCount); 79 char[] v = new char[byteCount]; [all...] |