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

1234

/external/okhttp/okio/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(Buffer sink, long byteCount) throws IOException; argument
H A DForwardingSink.java34 @Override public void write(Buffer source, long byteCount) throws IOException { argument
35 delegate.write(source, byteCount);
H A DForwardingSource.java34 @Override public long read(Buffer sink, long byteCount) throws IOException { argument
35 return delegate.read(sink, byteCount);
H A DSegmentPool.java31 static long byteCount; field in class:SegmentPool
42 byteCount -= Segment.SIZE;
53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full.
54 byteCount += Segment.SIZE;
H A DSink.java52 /** Removes {@code byteCount} bytes from {@code source} and appends them to this. */
53 void write(Buffer source, long byteCount) throws IOException; argument
H A DDeflaterSink.java58 @Override public void write(Buffer source, long byteCount) argument
60 checkOffsetAndCount(source.size, 0, byteCount);
61 while (byteCount > 0) {
64 int toDeflate = (int) Math.min(byteCount, head.limit - head.pos);
78 byteCount -= toDeflate;
H A DInflaterSource.java56 Buffer sink, long byteCount) throws IOException {
57 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
59 if (byteCount == 0) return 0;
55 read( Buffer sink, long byteCount) argument
H A DGzipSink.java65 @Override public void write(Buffer source, long byteCount) throws IOException { argument
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) { argument
131 for (Segment head = buffer.head; byteCount > 0; head = head.next) {
132 int segmentLength = (int) Math.min(byteCount, hea
[all...]
H A DSegment.java103 * 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) { argument
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);
134 writeTo(Segment sink, int byteCount) argument
[all...]
H A DUtil.java27 public static void checkOffsetAndCount(long size, long offset, long byteCount) { argument
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++) {
73 arrayRangeEquals( byte[] a, int aOffset, byte[] b, int bOffset, int byteCount) argument
/external/conscrypt/common/src/main/java/org/conscrypt/
H A DOpenSSLBIOSink.java48 long skip(long byteCount) { argument
49 int maxLength = Math.min(available(), (int) byteCount);
H A DOpenSSLBIOSource.java87 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
88 int toRead = Math.min(source.remaining(), byteCount);
100 public long skip(long byteCount) throws IOException { argument
102 source.position((int) (originalPosition + byteCount));
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DRequestBody.java83 final int offset, final int byteCount) {
85 Util.checkOffsetAndCount(content.length, offset, byteCount);
92 return byteCount;
96 sink.write(content, offset, byteCount);
82 create(final MediaType contentType, final byte[] content, final int offset, final int byteCount) argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
H A DFaultHidingSink.java16 @Override public void write(Buffer source, long byteCount) throws IOException { argument
18 source.skip(byteCount);
22 super.write(source, byteCount);
/external/okhttp/okio/okio/src/test/java/okio/
H A DSocketTimeoutTest.java123 private static void writeFully(OutputStream out, int byteCount) throws IOException { argument
124 out.write(new byte[byteCount]);
128 private static byte[] readFully(InputStream in, int byteCount) throws IOException { argument
130 byte[] result = new byte[byteCount];
131 while (count < byteCount) {
H A DMockSink.java50 @Override public void write(Buffer source, long byteCount) throws IOException { argument
51 log.add("write(" + source + ", " + byteCount + ")");
52 source.skip(byteCount);
H A DGzipSourceTest.java219 @Override public long read(Buffer sink, long byteCount) throws IOException { argument
220 long result = source.read(sink, byteCount);
/external/skia/src/core/
H A DSkMD5.h22 size_t bytesWritten() const final { return SkToSizeT(this->byteCount); }
36 uint64_t byteCount; // number of bytes, modulo 2^64 member in class:SkMD5
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
H A DPushObserver.java67 * @param byteCount number of bytes to read or skip from the source.
70 boolean onData(int streamId, BufferedSource source, int byteCount, boolean last) argument
86 @Override public boolean onData(int streamId, BufferedSource source, int byteCount,
88 source.skip(byteCount);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
H A DRetryableSink.java54 @Override public void write(Buffer source, long byteCount) throws IOException { argument
56 checkOffsetAndCount(source.size(), 0, byteCount);
57 if (limit != -1 && content.size() > limit - byteCount) {
60 content.write(source, byteCount);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
H A DGeneralDigest.java19 private long byteCount; field in class:GeneralDigest
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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
H A DOFBBlockCipher.java15 private int byteCount; field in class:OFBBlockCipher
153 byteCount = 0;
161 if (byteCount == 0)
166 byte rv = (byte)(ofbOutV[byteCount++] ^ in);
168 if (byteCount == blockSize)
170 byteCount = 0;
/external/dng_sdk/source/
H A Ddng_opcode_list.cpp222 uint32 byteCount,
265 if (stream.Position () != streamOffset + byteCount)
220 Parse(dng_host &host, dng_stream &stream, uint32 byteCount, uint64 streamOffset) argument
/external/glide/library/src/main/java/com/bumptech/glide/util/
H A DExceptionCatchingInputStream.java83 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
86 read = wrapped.read(buffer, byteOffset, byteCount);
100 public long skip(long byteCount) throws IOException { argument
103 skipped = wrapped.skip(byteCount);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
H A DFaultyFileSystem.java85 @Override public void write(Buffer source, long byteCount) throws IOException { argument
87 super.write(source, byteCount);

Completed in 5951 milliseconds

1234