/external/okhttp/okio/src/main/java/okio/ |
H A D | BufferedSource.java | 37 * Returns when the buffer contains at least {@code byteCount} bytes. Throws 41 void require(long byteCount) throws IOException; argument 65 * Reads and discards {@code byteCount} bytes from this source. Throws an 69 void skip(long byteCount) throws IOException; argument 71 /** Removes {@code byteCount} bytes from this and returns them as a byte string. */ 72 ByteString readByteString(long byteCount) throws IOException; argument 75 * Removes {@code byteCount} bytes from this, decodes them as UTF-8 and 78 String readUtf8(long byteCount) throws IOException; argument
|
H A D | SegmentPool.java | 33 long byteCount; field in class:SegmentPool 44 byteCount -= Segment.SIZE; 54 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. 55 byteCount += Segment.SIZE;
|
H A D | RealBufferedSource.java | 43 @Override public long read(OkBuffer sink, long byteCount) throws IOException { argument 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 { argument 63 while (buffer.size < byteCount) { 73 @Override public ByteString readByteString(long byteCount) throws IOException { argument 74 require(byteCount); 75 return buffer.readByteString(byteCount); 78 readUtf8(long byteCount) argument 129 skip(long byteCount) argument [all...] |
H A D | Okio.java | 37 public static void copy(OkBuffer source, long offset, long byteCount, OutputStream sink) argument 39 checkOffsetAndCount(source.size, offset, byteCount); 49 while (byteCount > 0) { 51 int toWrite = (int) Math.min(s.limit - pos, byteCount); 53 byteCount -= toWrite; 63 @Override public void write(OkBuffer source, long byteCount) 65 checkOffsetAndCount(source.size, 0, byteCount); 66 while (byteCount > 0) { 69 int toCopy = (int) Math.min(byteCount, head.limit - head.pos); 73 byteCount [all...] |
H A D | OkBuffer.java | 69 @Override public void write(byte[] data, int offset, int byteCount) { 70 OkBuffer.this.write(data, offset, byteCount); 93 @Override public void require(long byteCount) throws EOFException { argument 94 if (this.size < byteCount) throw new EOFException(); 103 @Override public int read(byte[] sink, int offset, int byteCount) { 104 return OkBuffer.this.read(sink, offset, byteCount); 276 @Override public ByteString readByteString(long byteCount) { argument 277 return new ByteString(readBytes(byteCount)); 280 @Override public String readUtf8(long byteCount) { argument 281 checkOffsetAndCount(this.size, 0, byteCount); 336 readBytes(long byteCount) argument 364 read(byte[] sink, int offset, int byteCount) argument 390 skip(long byteCount) argument 421 write(byte[] source, int offset, int byteCount) argument 516 write(OkBuffer source, long byteCount) argument 607 read(OkBuffer sink, long byteCount) argument [all...] |
H A D | Segment.java | 75 * segment contains the data in {@code [pos..pos+byteCount)}. The second 76 * segment contains the data in {@code [pos+byteCount..limit)}. This can be 81 public Segment split(int byteCount) { argument 82 int aSize = byteCount; 83 int bSize = (limit - pos) - byteCount; 118 /** Moves {@code byteCount} bytes from {@code sink} to this segment. */ 121 public void writeTo(Segment sink, int byteCount) { argument 122 if (byteCount + (sink.limit - sink.pos) > SIZE) throw new IllegalArgumentException(); 124 if (sink.limit + byteCount > SIZE) { 125 // We can't fit byteCount byte [all...] |
H A D | Sink.java | 51 /** Removes {@code byteCount} bytes from {@code source} and appends them to this. */ 52 void write(OkBuffer source, long byteCount) throws IOException; argument
|
H A D | Source.java | 64 * Removes at least 1, and up to {@code byteCount} bytes from this and appends 68 long read(OkBuffer sink, long byteCount) throws IOException; argument
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
H A D | 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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
H A D | GeneralDigest.java | 17 private long byteCount; field in class:GeneralDigest 45 byteCount = t.byteCount; 59 byteCount++; 87 byteCount += xBuf.length; 104 long bitLength = (byteCount << 3); 123 byteCount = 0;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
H A D | RecyclableBufferedInputStream.java | 243 * Reads at most {@code byteCount} bytes from this stream and stores them in 255 * if {@code offset < 0} or {@code byteCount < 0}, or if 256 * {@code offset + byteCount} is greater than the size of 263 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { argument 270 //Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 271 if (byteCount == 0) { 282 int copylength = count - pos >= byteCount ? byteCount : count - pos; 285 if (copylength == byteCount || localIn.available() == 0) { 289 required = byteCount 365 skip(long byteCount) argument [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
H A D | PushObserver.java | 57 * @param byteCount number of bytes to read or skip from the source. 60 boolean onData(int streamId, BufferedSource source, int byteCount, boolean last) argument 76 @Override public boolean onData(int streamId, BufferedSource source, int byteCount, 78 source.skip(byteCount);
|
/external/yaffs2/yaffs2/ |
H A D | 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 [all...] |
H A D | yaffs_packedtags1.c | 8 pt->byteCount = t->byteCount; 31 t->byteCount = pt->byteCount;
|
H A D | yaffs_packedtags1.h | 11 unsigned byteCount:10; member in struct:__anon34336
|
H A D | yaffs_packedtags2.h | 13 unsigned byteCount; member in struct:__anon34337
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkMD5.h | 32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); } 46 uint64_t byteCount; member in class:SkMD5
|
H A D | SkSHA1.h | 32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); } 46 uint64_t byteCount; member in class:SkSHA1
|
/external/okhttp/okio/src/test/java/okio/ |
H A D | RealBufferedSourceReadUtf8LineTest.java | 26 @Override public long read(OkBuffer sink, long byteCount) throws IOException { 27 return buffer.read(sink, Math.min(1, byteCount));
|
/external/skia/src/utils/ |
H A D | SkMD5.h | 32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); } 46 uint64_t byteCount; member in class:SkMD5
|
H A D | SkSHA1.h | 32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); } 46 uint64_t byteCount; member in class:SkSHA1
|
/external/chromium_org/third_party/skia/src/ports/ |
H A D | SkOSFile_stdio.cpp | 71 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) { argument 79 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR); 82 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err)); 85 return byteCount; 88 return ::fread(buffer, 1, byteCount, (FILE*)f); 91 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) { argument 93 return ::fwrite(buffer, 1, byteCount, (FILE*)f); 101 bool sk_fseek(SkFILE* f, size_t byteCount) { argument 102 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_SET); 106 bool sk_fmove(SkFILE* f, long byteCount) { argument [all...] |
/external/skia/src/ports/ |
H A D | SkOSFile_stdio.cpp | 73 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* f) { argument 81 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_CUR); 84 byteCount, curr, feof((FILE*)f), ferror((FILE*)f), err)); 87 return byteCount; 90 return ::fread(buffer, 1, byteCount, (FILE*)f); 93 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) { argument 95 return ::fwrite(buffer, 1, byteCount, (FILE*)f); 103 bool sk_fseek(SkFILE* f, size_t byteCount) { argument 104 int err = ::fseek((FILE*)f, (long)byteCount, SEEK_SET); 108 bool sk_fmove(SkFILE* f, long byteCount) { argument [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | OpenSSLBIOSource.java | 83 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument 84 int toRead = Math.min(source.remaining(), byteCount); 96 public long skip(long byteCount) throws IOException { argument 98 source.position((int) (originalPosition + byteCount));
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
H A D | RetryableSink.java | 55 @Override public void write(OkBuffer source, long byteCount) throws IOException { argument 57 checkOffsetAndCount(source.size(), 0, byteCount); 58 if (limit != -1 && content.size() > limit - byteCount) { 61 content.write(source, byteCount);
|