Home
last modified time | relevance | path

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

12

/libcore/dom/src/test/java/org/w3c/domts/
DDOMLocatorImpl.java25 private final int byteOffset; field in DOMLocatorImpl
33 this.byteOffset = src.getByteOffset(); in DOMLocatorImpl()
60 return byteOffset; in getByteOffset()
/libcore/luni/src/main/java/java/util/zip/
DCheckedInputStream.java81 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
82 int bytesRead = in.read(buffer, byteOffset, byteCount); in read()
84 check.update(buffer, byteOffset, bytesRead); in read()
DDeflaterInputStream.java114 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
116 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
136 int bytesDeflated = def.deflate(buffer, byteOffset + count, byteCount - count); in read()
DInflaterInputStream.java139 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
141 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
158 int result = inf.inflate(buffer, byteOffset, byteCount); in read()
DZipInputStream.java298 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
300 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
323 System.arraycopy(buf, lastRead, buffer, byteOffset, toRead); in read()
326 crc.update(buffer, byteOffset, toRead); in read()
337 read = inf.inflate(buffer, byteOffset, byteCount); in read()
344 crc.update(buffer, byteOffset, read); in read()
DGZIPInputStream.java129 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
136 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
140 bytesRead = super.read(buffer, byteOffset, byteCount); in read()
146 crc.update(buffer, byteOffset, bytesRead); in read()
/libcore/luni/src/main/java/java/io/
DInputStream.java176 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
190 buffer[byteOffset + i] = (byte) c; in read()
DBufferedInputStream.java252 …@Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) throws IOExce… in read() argument
259 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
272 System.arraycopy(localBuf, pos, buffer, byteOffset, copylength); in read()
277 byteOffset += copylength; in read()
290 read = localIn.read(buffer, byteOffset, required); in read()
307 System.arraycopy(localBuf, pos, buffer, byteOffset, read); in read()
317 byteOffset += read; in read()
DStringBufferInputStream.java81 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { in read() argument
85 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
92 buffer[byteOffset + i] = (byte) this.buffer.charAt(pos + i); in read()
DByteArrayInputStream.java144 @Override public synchronized int read(byte[] buffer, int byteOffset, int byteCount) { in read() argument
145 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
156 System.arraycopy(this.buf, pos, buffer, byteOffset, copylen); in read()
DLineNumberInputStream.java159 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
160 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
174 buffer[byteOffset + i] = (byte) currentChar; in read()
DSequenceInputStream.java173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
179 int result = in.read(buffer, byteOffset, byteCount); in read()
DFilterInputStream.java117 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
118 return in.read(buffer, byteOffset, byteCount); in read()
DPipedInputStream.java282 …@Override public synchronized int read(byte[] bytes, int byteOffset, int byteCount) throws IOExcep… in read() argument
283 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); in read()
326 System.arraycopy(buffer, out, bytes, byteOffset, length); in read()
344 System.arraycopy(buffer, out, bytes, byteOffset + totalCopied, length); in read()
DPushbackInputStream.java166 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
170 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); in read()
171 int copiedBytes = 0, copyLength = 0, newOffset = byteOffset; in read()
/libcore/luni/src/main/java/java/security/
DDigestInputStream.java112 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
113 int bytesRead = in.read(buffer, byteOffset, byteCount); in read()
118 digest.update(buffer, byteOffset, bytesRead); in read()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java208 …@Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long of… in pread() argument
210 return os.pread(fd, bytes, byteOffset, byteCount, offset); in pread()
218 …@Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long o… in pwrite() argument
220 return os.pwrite(fd, bytes, byteOffset, byteCount, offset); in pwrite()
228 …@Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws E… in read() argument
230 return os.read(fd, bytes, byteOffset, byteCount); in read()
248 …@Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int … in recvfrom() argument
250 return os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
273 …@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int fl… in sendto() argument
278 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
[all …]
DPosix.java127 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument
129 return preadBytes(fd, bytes, byteOffset, byteCount, offset); in pread()
145 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument
147 return pwriteBytes(fd, bytes, byteOffset, byteCount, offset); in pwrite()
163 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument
165 return readBytes(fd, bytes, byteOffset, byteCount); in read()
183 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
185 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
187 …private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, … in recvfromBytes() argument
204 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetA… in sendto() argument
[all …]
DForwardingOs.java121 …[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOExceptio… in pread() argument
123 …] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException… in pwrite() argument
125 …d, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { re… in read() argument
129 …t byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, Socke… in recvfrom() argument
134byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
165 …, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { ret… in write() argument
DIoBridge.java466 …public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOEx… in read() argument
467 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); in read()
472 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); in read()
490 …public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IO… in write() argument
491 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); in write()
497 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); in write()
499 byteOffset += bytesWritten; in write()
506 …public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags… in sendto() argument
513 result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
549 …public static int recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int by… in recvfrom() argument
[all …]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLongArray.java36 return byteOffset(i); in checkedByteOffset()
39 private static long byteOffset(int i) { in byteOffset() method in AtomicLongArray
246 b.append(getRaw(byteOffset(i))); in toString()
DAtomicIntegerArray.java37 return byteOffset(i); in checkedByteOffset()
40 private static long byteOffset(int i) { in byteOffset() method in AtomicIntegerArray
247 b.append(getRaw(byteOffset(i))); in toString()
DAtomicReferenceArray.java50 return byteOffset(i); in checkedByteOffset()
53 private static long byteOffset(int i) { in byteOffset() method in AtomicReferenceArray
188 b.append(getRaw(byteOffset(i))); in toString()
/libcore/luni/src/main/java/java/util/jar/
DJarInputStream.java153 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
158 int r = super.read(buffer, byteOffset, byteCount); in read()
183 verStream.write(buffer, byteOffset, r); in read()
/libcore/luni/src/main/java/android/system/
DOs.java330 …ytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { … in pread() argument
340 …tes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { r… in pwrite() argument
350 …yte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return… in read() argument
370byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketE… in recvfrom() argument
395byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
519 …te[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return … in write() argument

12