/external/okhttp/okio/okio/src/main/java/okio/ |
H A D | Source.java | 64 * 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 D | ForwardingSink.java | 34 @Override public void write(Buffer source, long byteCount) throws IOException { argument 35 delegate.write(source, byteCount);
|
H A D | ForwardingSource.java | 34 @Override public long read(Buffer sink, long byteCount) throws IOException { argument 35 return delegate.read(sink, byteCount);
|
H A D | SegmentPool.java | 31 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 D | Sink.java | 52 /** Removes {@code byteCount} bytes from {@code source} and appends them to this. */ 53 void write(Buffer source, long byteCount) throws IOException; argument
|
H A D | DeflaterSink.java | 58 @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 D | InflaterSource.java | 56 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 D | GzipSink.java | 65 @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 D | 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) { 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 D | Util.java | 27 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 D | OpenSSLBIOSink.java | 48 long skip(long byteCount) { argument 49 int maxLength = Math.min(available(), (int) byteCount);
|
H A D | OpenSSLBIOSource.java | 87 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 D | RequestBody.java | 83 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 D | FaultHidingSink.java | 16 @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 D | SocketTimeoutTest.java | 123 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 D | MockSink.java | 50 @Override public void write(Buffer source, long byteCount) throws IOException { argument 51 log.add("write(" + source + ", " + byteCount + ")"); 52 source.skip(byteCount);
|
H A D | GzipSourceTest.java | 219 @Override public long read(Buffer sink, long byteCount) throws IOException { argument 220 long result = source.read(sink, byteCount);
|
/external/skia/src/core/ |
H A D | SkMD5.h | 22 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 D | PushObserver.java | 67 * @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 D | RetryableSink.java | 54 @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 D | GeneralDigest.java | 19 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 D | OFBBlockCipher.java | 15 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 D | dng_opcode_list.cpp | 222 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 D | ExceptionCatchingInputStream.java | 83 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 D | FaultyFileSystem.java | 85 @Override public void write(Buffer source, long byteCount) throws IOException { argument 87 super.write(source, byteCount);
|