Searched refs:byteCount (Results 1 - 25 of 114) sorted by relevance

12345

/external/okhttp/okio/src/main/java/okio/
H A DBufferedSource.java37 * 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 DSegmentPool.java33 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 DRealBufferedSource.java43 @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 DOkio.java37 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 DOkBuffer.java69 @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 DSegment.java75 * 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 DSink.java51 /** Removes {@code byteCount} bytes from {@code source} and appends them to this. */
52 void write(OkBuffer source, long byteCount) throws IOException; argument
H A DSource.java64 * 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 Dparse-malloc-history74 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 DGeneralDigest.java17 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 DRecyclableBufferedInputStream.java243 * Reads at most {@code byteCount} bytes from this stream and stores them in
255 * if {@code offset &lt; 0} or {@code byteCount &lt; 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 DPushObserver.java57 * @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 Dyaffs_packedtags2.c50 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 Dyaffs_packedtags1.c8 pt->byteCount = t->byteCount;
31 t->byteCount = pt->byteCount;
H A Dyaffs_packedtags1.h11 unsigned byteCount:10; member in struct:__anon34336
H A Dyaffs_packedtags2.h13 unsigned byteCount; member in struct:__anon34337
/external/chromium_org/third_party/skia/src/utils/
H A DSkMD5.h32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); }
46 uint64_t byteCount; member in class:SkMD5
H A DSkSHA1.h32 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 DRealBufferedSourceReadUtf8LineTest.java26 @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 DSkMD5.h32 virtual size_t bytesWritten() const SK_OVERRIDE { return SkToSizeT(this->byteCount); }
46 uint64_t byteCount; member in class:SkMD5
H A DSkSHA1.h32 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 DSkOSFile_stdio.cpp71 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 DSkOSFile_stdio.cpp73 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 DOpenSSLBIOSource.java83 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 DRetryableSink.java55 @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);

Completed in 4261 milliseconds

12345