Searched defs:byteCount (Results 1 - 25 of 73) sorted by relevance

123

/external/okhttp/okio/src/main/java/okio/
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
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 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 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 DDeflaterSink.java47 @Override public void write(OkBuffer source, long byteCount) argument
49 checkOffsetAndCount(source.size, 0, byteCount);
50 while (byteCount > 0) {
53 int toDeflate = (int) Math.min(byteCount, head.limit - head.pos);
67 byteCount -= toDeflate;
H A DInflaterSource.java56 OkBuffer sink, long byteCount) throws IOException {
57 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
59 if (byteCount == 0) return 0;
55 read( OkBuffer sink, long byteCount) argument
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 DBufferedSink.java38 * Like {@link OutputStream#write}, this writes {@code byteCount} bytes
41 BufferedSink write(byte[] source, int offset, int byteCount) throws IOException; argument
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 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...]
/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/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/yaffs2/yaffs2/
H A Dyaffs_packedtags1.h11 unsigned byteCount:10; member in struct:__anon34336
H A Dyaffs_packedtags2.h13 unsigned byteCount; member in struct:__anon34337
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLBIOSink.java45 public long skip(long byteCount) { argument
46 int maxLength = Math.min(available(), (int) byteCount);
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);
/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/okhttp/okio/src/test/java/okio/
H A DMockSink.java50 @Override public void write(OkBuffer source, long byteCount) throws IOException { argument
51 log.add("write(" + source + ", " + byteCount + ")");
52 source.skip(byteCount);
H A DGzipSourceTest.java219 @Override public long read(OkBuffer sink, long byteCount) throws IOException { argument
220 long result = source.read(sink, byteCount);
/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/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/chromium_org/third_party/skia/tools/
H A Dsk_tool_utils_font.cpp161 size_t byteCount = SkUTF16_ToUTF8(&uni, 1, NULL); local
162 SkAutoSTMalloc<10, char> utf8(byteCount);
164 for (unsigned byteIndex = 0; byteIndex < byteCount; ++byteIndex) {

Completed in 279 milliseconds

123