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

123456

/external/okhttp/okio/okio/src/main/java/okio/
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 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 DBufferedSource.java38 * Returns when the buffer contains at least {@code byteCount} bytes. Throws
42 void require(long byteCount) throws IOException; argument
45 * Returns true when the buffer contains at least {@code byteCount} bytes,
49 boolean request(long byteCount) throws IOException; argument
91 * Reads and discards {@code byteCount} bytes from this source. Throws an
95 void skip(long byteCount) throws IOException; argument
100 /** Removes {@code byteCount} bytes from this and returns them as a byte string. */
101 ByteString readByteString(long byteCount) throws IOException; argument
106 /** Removes {@code byteCount} bytes from this and returns them as a byte array. */
107 byte[] readByteArray(long byteCount) throw argument
125 read(byte[] sink, int offset, int byteCount) argument
132 readFully(Buffer sink, long byteCount) argument
148 readUtf8(long byteCount) argument
199 readString(long byteCount, Charset charset) argument
[all...]
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 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
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 DBuffer.java73 @Override public void write(byte[] data, int offset, int byteCount) {
74 Buffer.this.write(data, offset, byteCount);
101 @Override public void require(long byteCount) throws EOFException { argument
102 if (size < byteCount) throw new EOFException();
105 @Override public boolean request(long byteCount) { argument
106 return size >= byteCount;
116 @Override public int read(byte[] sink, int offset, int byteCount) {
117 return Buffer.this.read(sink, offset, byteCount);
139 * Copy {@code byteCount} bytes from this, starting at {@code offset}, to
142 public Buffer copyTo(OutputStream out, long offset, long byteCount) throw argument
166 copyTo(Buffer out, long offset, long byteCount) argument
202 writeTo(OutputStream out, long byteCount) argument
232 readFrom(InputStream in, long byteCount) argument
238 readFrom(InputStream in, long byteCount, boolean forever) argument
528 readByteString(long byteCount) argument
532 readFully(Buffer sink, long byteCount) argument
556 readUtf8(long byteCount) argument
568 readString(long byteCount, Charset charset) argument
713 readByteArray(long byteCount) argument
737 read(byte[] sink, int offset, int byteCount) argument
769 skip(long byteCount) argument
934 write(byte[] source, int offset, int byteCount) argument
962 write(Source source, long byteCount) argument
1125 write(Buffer source, long byteCount) argument
1216 read(Buffer sink, long byteCount) argument
1433 snapshot(int byteCount) argument
[all...]
H A DRealBufferedSource.java44 @Override public long read(Buffer sink, long byteCount) throws IOException { argument
46 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
54 long toRead = Math.min(byteCount, buffer.size);
63 @Override public void require(long byteCount) throws IOException { argument
64 if (!request(byteCount)) throw new EOFException();
67 @Override public boolean request(long byteCount) throws IOException { argument
68 if (byteCount < 0) throw new IllegalArgumentException("byteCount <
86 readByteString(long byteCount) argument
96 readByteArray(long byteCount) argument
121 read(byte[] sink, int offset, int byteCount) argument
133 readFully(Buffer sink, long byteCount) argument
167 readUtf8(long byteCount) argument
179 readString(long byteCount, Charset charset) argument
287 skip(long byteCount) argument
[all...]
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 DRealBufferedSink.java42 @Override public void write(Buffer source, long byteCount) argument
45 buffer.write(source, byteCount);
93 @Override public BufferedSink write(byte[] source, int offset, int byteCount) throws IOException { argument
95 buffer.write(source, offset, byteCount);
109 @Override public BufferedSink write(Source source, long byteCount) throws IOException { argument
110 while (byteCount > 0) {
111 long read = source.read(buffer, byteCount);
113 byteCount -= read;
175 long byteCount = buffer.completeSegmentByteCount();
176 if (byteCount >
[all...]
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 DSegmentedByteString.java54 SegmentedByteString(Buffer buffer, int byteCount) { argument
56 checkOffsetAndCount(buffer.size, 0, byteCount);
61 for (Segment s = buffer.head; offset < byteCount; s = s.next) {
74 for (Segment s = buffer.head; offset < byteCount; s = s.next) {
185 int offset, ByteString other, int otherOffset, int byteCount) {
186 if (offset > size() - byteCount) return false;
188 for (int s = segment(offset); byteCount > 0; s++) {
191 int stepSize = Math.min(byteCount, segmentOffset + segmentSize - offset);
197 byteCount -= stepSize;
202 @Override public boolean rangeEquals(int offset, byte[] other, int otherOffset, int byteCount) { argument
184 rangeEquals( int offset, ByteString other, int otherOffset, int byteCount) argument
[all...]
H A DGzipSource.java67 @Override public long read(Buffer sink, long byteCount) throws IOException { argument
68 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
69 if (byteCount == 0) return 0;
80 long result = inflaterSource.read(sink, byteCount);
186 private void updateCrc(Buffer buffer, long offset, long byteCount) { argument
194 for (; byteCount > 0; s = s.next) {
196 int toUpdate = (int) Math.min(s.limit - pos, byteCount);
198 byteCount
[all...]
/external/webrtc/webrtc/examples/objc/AppRTCDemo/
H A DARDBitrateTracker.m36 - (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount {
38 if (_prevTime && (byteCount > _prevByteCount)) {
39 _bitrate = (byteCount - _prevByteCount) * 8 / (currentTime - _prevTime);
41 _prevByteCount = byteCount;
H A DARDBitrateTracker.h28 - (void)updateBitrateWithCurrentByteCount:(NSInteger)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/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DRecyclableBufferedInputStream.java249 * Reads at most {@code byteCount} bytes from this stream and stores them in
261 * if {@code offset < 0} or {@code byteCount < 0}, or if
262 * {@code offset + byteCount} is greater than the size of
269 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
275 //Arrays.checkOffsetAndCount(buffer.length, offset, byteCount);
276 if (byteCount == 0) {
287 int copylength = count - pos >= byteCount ? byteCount : count - pos;
290 if (copylength == byteCount || localIn.available() == 0) {
294 required = byteCount
368 skip(long byteCount) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
H A DCFBBlockCipher.java24 private int byteCount; field in class:CFBBlockCipher
124 if (byteCount == 0)
129 byte rv = (byte)(cfbOutV[byteCount] ^ in);
130 inBuf[byteCount++] = rv;
132 if (byteCount == blockSize)
134 byteCount = 0;
145 if (byteCount == 0)
150 inBuf[byteCount] = in;
151 byte rv = (byte)(cfbOutV[byteCount++] ^ in);
153 if (byteCount
[all...]
H A DSICBlockCipher.java26 private int byteCount; field in class:SICBlockCipher
42 this.byteCount = 0;
102 if (byteCount == 0)
106 return (byte)(counterOut[byteCount++] ^ in);
109 byte rv = (byte)(counterOut[byteCount++] ^ in);
111 if (byteCount == counter.length)
113 byteCount = 0;
178 long numBlocks = (n + byteCount) / blockSize;
196 byteCount = (int)((n + byteCount)
[all...]
/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/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/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/conscrypt/common/src/main/java/org/conscrypt/
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/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);

Completed in 6754 milliseconds

123456