Searched refs:byteOffset (Results 1 - 25 of 40) sorted by relevance

12

/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMLocatorImpl.java25 private final int byteOffset; field in class:DOMLocatorImpl
33 this.byteOffset = src.getByteOffset();
60 return byteOffset;
/libcore/luni/src/main/java/java/io/
H A DInputStream.java167 * the byte array {@code buffer} starting at {@code byteOffset}.
172 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
176 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
190 buffer[byteOffset + i] = (byte) c;
H A DObjectInput.java69 * byte array {@code buffer} starting at offset {@code byteOffset}. Blocks while
76 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException; argument
H A DFilterInputStream.java117 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
118 return in.read(buffer, byteOffset, byteCount);
H A DByteArrayInputStream.java144 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { argument
145 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
156 System.arraycopy(this.buf, pos, buffer, byteOffset, copylen);
H A DLineNumberInputStream.java142 * them in the byte array {@code buffer} starting at {@code byteOffset}.
152 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
159 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
160 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
174 buffer[byteOffset + i] = (byte) currentChar;
H A DSequenceInputStream.java150 * stores them in the byte array {@code buffer} starting at {@code byteOffset}.
166 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
179 int result = in.read(buffer, byteOffset, byteCount);
H A DStringBufferInputStream.java81 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { argument
85 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
92 buffer[byteOffset + i] = (byte) this.buffer.charAt(pos + i);
H A DBufferedInputStream.java252 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
259 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
272 System.arraycopy(localBuf, pos, buffer, byteOffset, copylength);
277 byteOffset += copylength;
290 read = localIn.read(buffer, byteOffset, required);
307 System.arraycopy(localBuf, pos, buffer, byteOffset, read);
317 byteOffset += read;
H A DPushbackInputStream.java151 * the byte array {@code buffer} starting at {@code byteOffset}. Bytes are read
158 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}.
166 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
170 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
171 int copiedBytes = 0, copyLength = 0, newOffset = byteOffset;
H A DPipedInputStream.java260 * byte array {@code bytes} starting at {@code byteOffset}. Blocks until at
272 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > bytes.length}.
282 @Override public synchronized int read(byte[] bytes, int byteOffset, int byteCount) throws IOException { argument
283 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount);
326 System.arraycopy(buffer, out, bytes, byteOffset, length);
344 System.arraycopy(buffer, out, bytes, byteOffset + totalCopied, length);
H A DFileInputStream.java176 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
177 return IoBridge.read(fd, buffer, byteOffset, byteCount);
H A DFileOutputStream.java185 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
186 IoBridge.write(fd, buffer, byteOffset, byteCount);
/libcore/luni/src/main/java/java/security/
H A DDigestInputStream.java100 * {@code byteOffset}. Updates the digest if this function is
112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
113 int bytesRead = in.read(buffer, byteOffset, byteCount);
118 digest.update(buffer, byteOffset, bytesRead);
/libcore/luni/src/main/java/java/util/zip/
H A DCheckedInputStream.java72 * into {@code buffer}, starting at offset {@code byteOffset}. The checksum is
81 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
82 int bytesRead = in.read(buffer, byteOffset, byteCount);
84 check.update(buffer, byteOffset, bytesRead);
H A DDeflaterInputStream.java114 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
116 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
136 int bytesDeflated = def.deflate(buffer, byteOffset + count, byteCount - count);
H A DInflaterInputStream.java135 * {@code buffer} starting at {@code byteOffset}. Returns the number of uncompressed bytes read,
139 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
141 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
158 int result = inf.inflate(buffer, byteOffset, byteCount);
H A DZipInputStream.java316 * starting at {@code byteOffset}. Returns the number of bytes actually read, or -1.
319 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
321 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount);
344 System.arraycopy(buf, lastRead, buffer, byteOffset, toRead);
347 crc.update(buffer, byteOffset, toRead);
358 read = inf.inflate(buffer, byteOffset, byteCount);
365 crc.update(buffer, byteOffset, read);
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicIntegerArray.java38 return byteOffset(i);
41 private static long byteOffset(int i) { method in class:AtomicIntegerArray
248 b.append(getRaw(byteOffset(i)));
H A DAtomicLongArray.java37 return byteOffset(i);
40 private static long byteOffset(int i) { method in class:AtomicLongArray
247 b.append(getRaw(byteOffset(i)));
H A DAtomicReferenceArray.java50 return byteOffset(i);
53 private static long byteOffset(int i) { method in class:AtomicReferenceArray
188 b.append(getRaw(byteOffset(i)));
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java208 @Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { argument
210 return os.pread(fd, bytes, byteOffset, byteCount, offset);
218 @Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { argument
220 return os.pwrite(fd, bytes, byteOffset, byteCount, offset);
228 @Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { argument
230 return os.read(fd, bytes, byteOffset, byteCount);
248 @Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { argument
250 return os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress);
273 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument
278 return os.sendto(fd, bytes, byteOffset, byteCoun
311 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
[all...]
H A DPosix.java131 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { argument
133 return preadBytes(fd, bytes, byteOffset, byteCount, offset);
149 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { argument
151 return pwriteBytes(fd, bytes, byteOffset, byteCount, offset);
167 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { argument
169 return readBytes(fd, bytes, byteOffset, byteCount);
187 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { argument
189 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress);
191 private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException; argument
209 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, in argument
213 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) argument
216 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
217 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, SocketAddress address) argument
269 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
[all...]
H A DIoBridge.java462 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { argument
463 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount);
468 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount);
486 public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { argument
487 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount);
493 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount);
495 byteOffset += bytesWritten;
502 public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws IOException { argument
509 result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
545 public static int recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, in argument
[all...]
/libcore/luni/src/main/java/java/util/jar/
H A DJarInputStream.java147 * {@code buffer} starting at {@code byteOffset}. Returns the number of uncompressed bytes read.
153 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
158 int r = super.read(buffer, byteOffset, byteCount);
183 verStream.write(buffer, byteOffset, r);

Completed in 378 milliseconds

12