HomeSort by relevance Sort by last modified time
    Searched refs:byteCount (Results 51 - 75 of 259) sorted by null

1 23 4 5 6 7 8 91011

  /external/okhttp/okio/src/main/java/okio/
Source.java 64 * Removes at least 1, and up to {@code byteCount} bytes from this and appends
68 long read(OkBuffer sink, long byteCount) throws IOException;
GzipSource.java 62 @Override public long read(OkBuffer sink, long byteCount) throws IOException {
63 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
64 if (byteCount == 0) return 0;
75 long result = inflaterSource.read(sink, byteCount);
182 private void updateCrc(OkBuffer buffer, long offset, long byteCount) {
183 for (Segment s = buffer.head; byteCount > 0; s = s.next) {
186 int toUpdate = (int) Math.min(byteCount, segmentByteCount - offset);
188 byteCount -= toUpdate
    [all...]
RealBufferedSink.java 40 @Override public void write(OkBuffer source, long byteCount)
43 buffer.write(source, byteCount);
65 @Override public BufferedSink write(byte[] source, int offset, int byteCount) throws IOException {
67 buffer.write(source, offset, byteCount);
115 long byteCount = buffer.completeSegmentByteCount();
116 if (byteCount > 0) sink.write(buffer, byteCount);
128 @Override public void write(byte[] data, int offset, int byteCount) throws IOException {
130 buffer.write(data, offset, byteCount);
InflaterSource.java 56 OkBuffer sink, long byteCount) throws IOException {
57 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
59 if (byteCount == 0) return 0;
DeflaterSink.java 47 @Override public void write(OkBuffer source, long byteCount)
49 checkOffsetAndCount(source.size, 0, byteCount);
50 while (byteCount > 0) {
53 int toDeflate = (int) Math.min(byteCount, head.limit - head.pos);
67 byteCount -= toDeflate;
  /external/yaffs2/yaffs2/
yaffs_packedtags1.c 8 pt->byteCount = t->byteCount;
31 t->byteCount = pt->byteCount;
yaffs_packedtags1.h 11 unsigned byteCount:10;
yaffs_packedtags2.h 13 unsigned byteCount;
  /libcore/luni/src/main/java/java/util/zip/
InflaterInputStream.java 134 * Reads up to {@code byteCount} bytes of decompressed data and stores it in
139 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
141 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
143 if (byteCount == 0) {
158 int result = inf.inflate(buffer, byteOffset, byteCount);
201 * Skips up to {@code byteCount} bytes of uncompressed data.
203 * @param byteCount the number of bytes to skip.
205 * @throws IllegalArgumentException if {@code byteCount < 0}.
209 public long skip(long byteCount) throws IOException {
210 if (byteCount < 0)
    [all...]
InflaterOutputStream.java 141 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException {
143 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount);
144 inf.setInput(bytes, offset, byteCount);
  /libcore/luni/src/main/java/java/nio/
MemoryBlock.java 38 private MemoryMappedBlock(long address, long byteCount) {
39 super(address, byteCount);
70 private NonMovableHeapBlock(byte[] array, long address, long byteCount) {
71 super(address, byteCount);
90 private UnmanagedBlock(long address, long byteCount) {
91 super(address, byteCount);
129 public static MemoryBlock allocate(int byteCount) {
131 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, byteCount);
133 return new NonMovableHeapBlock(array, address, byteCount);
136 public static MemoryBlock wrapFromJni(long address, long byteCount) {
    [all...]
Buffer.java 165 int byteCount = bytesPerElement * count;
170 if (byteCount > remaining()) {
173 return byteCount;
177 int byteCount = bytesPerElement * count;
182 if (byteCount > remaining()) {
188 return byteCount;
DirectByteBuffer.java 111 @Override public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
113 checkGetBounds(1, dst.length, dstOffset, byteCount);
114 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount);
115 position += byteCount;
121 int byteCount = checkGetBounds(SizeOf.CHAR, dst.length, dstOffset, charCount);
123 position += byteCount;
128 int byteCount = checkGetBounds(SizeOf.DOUBLE, dst.length, dstOffset, doubleCount);
130 position += byteCount;
135 int byteCount = checkGetBounds(SizeOf.FLOAT, dst.length, dstOffset, floatCount);
137 position += byteCount;
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
HttpConnection.java 284 @Override public void write(OkBuffer source, long byteCount) throws IOException {
286 checkOffsetAndCount(source.size(), 0, byteCount);
287 if (byteCount > bytesRemaining) {
289 + " bytes but received " + byteCount);
291 sink.write(source, byteCount);
292 bytesRemaining -= byteCount;
329 @Override public void write(OkBuffer source, long byteCount) throws IOException {
331 if (byteCount == 0) return;
333 writeHex(byteCount);
334 sink.write(source, byteCount);
    [all...]
  /libcore/luni/src/main/java/libcore/io/
Streams.java 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws
69 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) throws IOException {
70 if (byteCount == 0) {
79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount);
80 while (byteCount > 0) {
81 int bytesRead = in.read(dst, offset, byteCount);
86 byteCount -= bytesRead;
138 * Skip <b>at most</b> {@code byteCount} bytes from {@code in} by calling read
149 public static long skipByReading(InputStream in, long byteCount) throws IOException {
157 while (skipped < byteCount) {
    [all...]
  /external/chromium_org/third_party/skia/src/utils/ios/
SkOSFile_iOS.mm 69 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* rec) {
74 if (byteCount > remaining) {
75 byteCount = remaining;
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount);
78 rec->fOffset += byteCount;
80 return byteCount;
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
  /external/skia/src/utils/ios/
SkOSFile_iOS.mm 69 size_t sk_fread(void* buffer, size_t byteCount, SkFILE* rec) {
74 if (byteCount > remaining) {
75 byteCount = remaining;
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount);
78 rec->fOffset += byteCount;
80 return byteCount;
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) {
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLBIOSink.java 45 public long skip(long byteCount) {
46 int maxLength = Math.min(available(), (int) byteCount);
  /frameworks/base/packages/PrintSpooler/jni/
com_android_printspooler_util_BitmapSerializeUtils.cpp 29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) {
31 size_t remainingBytes = byteCount;
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) {
50 size_t remainingBytes = byteCount;
116 size_t byteCount = readInfo.stride * readInfo.height;
117 read = readAllBytes(fd, (void*) pixels, byteCount);
155 size_t byteCount = info.stride * info.height;
156 written = writeAllBytes(fd, (void*) pixels, byteCount);
  /libcore/luni/src/main/java/java/security/
DigestInputStream.java 99 * Reads up to {@code byteCount} bytes into {@code buffer}, starting at
112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
113 int bytesRead = in.read(buffer, byteOffset, byteCount);
  /libcore/luni/src/main/java/libcore/net/url/
FtpURLInputStream.java 77 public long skip(long byteCount) throws IOException {
78 return is.skip(byteCount);
  /libcore/luni/src/main/java/java/io/
DataInput.java 115 * Reads {@code byteCount} bytes from this stream and stores them in the byte
116 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this
118 * {@code byteCount} bytes have been read. If insufficient bytes are available,
127 * @param byteCount
133 * if {@code offset < 0} or {@code byteCount < 0}, or
134 * {@code offset + byteCount > dst.length}.
140 public abstract void readFully(byte[] dst, int offset, int byteCount) throws IOException;
SequenceInputStream.java 149 * Reads up to {@code byteCount} bytes from this sequence of input streams and
157 * requested by {@code byteCount}, it will not retry to read more on its own
166 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
179 int result = in.read(buffer, byteOffset, byteCount);
  /external/okhttp/okio/src/test/java/okio/
MockSink.java 50 @Override public void write(OkBuffer source, long byteCount) throws IOException {
51 log.add("write(" + source + ", " + byteCount + ")");
52 source.skip(byteCount);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
SpdyStream.java 362 @Override public long read(OkBuffer sink, long byteCount)
364 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount);
373 read = readBuffer.read(sink, Math.min(byteCount, readBuffer.size()));
425 void receive(BufferedSource in, long byteCount) throws IOException {
428 while (byteCount > 0) {
433 flowControlError = byteCount + readBuffer.size() > maxByteCount;
438 in.skip(byteCount);
445 in.skip(byteCount);
    [all...]

Completed in 644 milliseconds

1 23 4 5 6 7 8 91011