Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/libcore/io/
DLinux.java191 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument
193 return preadBytes(fd, bytes, byteOffset, byteCount, offset); in pread()
209 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument
211 return pwriteBytes(fd, bytes, byteOffset, byteCount, offset); in pwrite()
227 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument
229 return readBytes(fd, bytes, byteOffset, byteCount); in read()
248 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
250 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
252 …private native int recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, … in recvfromBytes() argument
272 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetA… in sendto() argument
[all …]
DBlockGuardOs.java299 …@Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long of… in pread() argument
301 return super.pread(fd, bytes, byteOffset, byteCount, offset); in pread()
311 …@Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long o… in pwrite() argument
313 return super.pwrite(fd, bytes, byteOffset, byteCount, offset); in pwrite()
323 …@Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws E… in read() argument
325 return super.read(fd, bytes, byteOffset, byteCount); in read()
353 …@Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int … in recvfrom() argument
355 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
393 …@Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int fl… in sendto() argument
398 return super.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
[all …]
DForwardingOs.java598 …[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOExceptio… in pread() argument
608 …] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException… in pwrite() argument
618 …d, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { re… in read() argument
644 …t byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, Socke… in recvfrom() argument
723byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
728 …, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketEx… in sendto() argument
948 …, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { ret… in write() argument
DIoBridge.java598 …public static int read(@NonNull FileDescriptor fd, @NonNull byte[] bytes, int byteOffset, int byte… in read() argument
599 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in read()
604 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); in read()
639 …public static void write(@NonNull FileDescriptor fd,@NonNull byte[] bytes, int byteOffset, int by… in write() argument
640 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in write()
646 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); in write()
648 byteOffset += bytesWritten; in write()
679 …public static int sendto(@NonNull FileDescriptor fd, @NonNull byte[] bytes, int byteOffset, int by… in sendto() argument
686 result = Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); in sendto()
749 …boolean isRead, @NonNull FileDescriptor fd, @NonNull byte[] bytes, int byteOffset, int byteCount, … in recvfrom() argument
[all …]
DOs.java502 …public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thro… in pread() argument
512 …public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) thr… in pwrite() argument
523 …public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcept… in read() argument
548 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
584 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetA… in sendto() argument
589 …public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Socke… in sendto() argument
779 …public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoExcep… in write() argument
/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/ojluni/src/main/java/java/nio/
DByteBufferAsCharBuffer.java49 protected final int byteOffset; field in ByteBufferAsCharBuffer
79 byteOffset = off; in ByteBufferAsCharBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 1) + byteOffset; in ix()
362 byteOffset, order); in subSequence()
DByteBufferAsLongBuffer.java49 protected final int byteOffset; field in ByteBufferAsLongBuffer
79 byteOffset = off; in ByteBufferAsLongBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 3) + byteOffset; in ix()
DByteBufferAsShortBuffer.java49 protected final int byteOffset; field in ByteBufferAsShortBuffer
79 byteOffset = off; in ByteBufferAsShortBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 1) + byteOffset; in ix()
DByteBufferAsDoubleBuffer.java49 protected final int byteOffset; field in ByteBufferAsDoubleBuffer
79 byteOffset = off; in ByteBufferAsDoubleBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 3) + byteOffset; in ix()
DByteBufferAsIntBuffer.java49 protected final int byteOffset; field in ByteBufferAsIntBuffer
79 byteOffset = off; in ByteBufferAsIntBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 2) + byteOffset; in ix()
DByteBufferAsFloatBuffer.java49 protected final int byteOffset; field in ByteBufferAsFloatBuffer
79 byteOffset = off; in ByteBufferAsFloatBuffer()
123 byteOffset, order); in duplicate()
135 byteOffset, order); in asReadOnlyBuffer()
147 return (i << 2) + byteOffset; in ix()
DByteBufferAs-X-Buffer.java.template49 protected final int byteOffset;
79 byteOffset = off;
98 // long addr = byteOffset(pos);
123 byteOffset, order);
135 byteOffset, order);
147 return (i << $LG_BYTES_PER_VALUE$) + byteOffset;
150 // Android-removed: Removed unused byteOffset(long).
152 protected long byteOffset(long i) {
160 …// $memtype$ x = SCOPED_MEMORY_ACCESS.get$Memtype$Unaligned(scope(), bb.hb, byteOffset(nextGetInde…
169 …// $memtype$ x = SCOPED_MEMORY_ACCESS.get$Memtype$Unaligned(scope(), bb.hb, byteOffset(checkIndex(…
[all …]
DHeap-X-Buffer.java.template214 private long byteOffset(long i) {
447 …// return SCOPED_MEMORY_ACCESS.getCharUnaligned(scope(), hb, byteOffset(nextGetIndex(2)), bigEndia…
454 …// return SCOPED_MEMORY_ACCESS.getCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEndi…
466 … // SCOPED_MEMORY_ACCESS.putCharUnaligned(scope(), hb, byteOffset(nextPutIndex(2)), x, bigEndian);
498 …// SSCOPED_MEMORY_ACCESS.putCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian);
566 …// return SCOPED_MEMORY_ACCESS.getShortUnaligned(scope(), hb, byteOffset(nextGetIndex(2)), bigEndi…
573 …// return SCOPED_MEMORY_ACCESS.getShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEnd…
603 … // SCOPED_MEMORY_ACCESS.putShortUnaligned(scope(), hb, byteOffset(nextPutIndex(2)), x, bigEndian);
617 …// SCOPED_MEMORY_ACCESS.putShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian);
684 …// return SCOPED_MEMORY_ACCESS.getIntUnaligned(scope(), hb, byteOffset(nextGetIndex(4)), bigEndian…
[all …]
DDoubleBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 3); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 3); in putBuffer()
DIntBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 2); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 2); in putBuffer()
DFloatBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 2); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 2); in putBuffer()
DLongBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 3); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 3); in putBuffer()
DShortBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 1); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 1); in putBuffer()
DCharBuffer.java1216 long dstStart = asDst.byteOffset + asDst.bb.offset + ((long) pos << 1); in putBuffer()
1217 long srcStart = asSrc.byteOffset + asSrc.bb.offset + ((long) srcPos << 1); in putBuffer()
DHeapByteBuffer.java214 private long byteOffset(long i) { in byteOffset() method in HeapByteBuffer
/libcore/luni/src/main/java/android/system/
DOs.java557 …ytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { … in pread() argument
567 …tes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { r… in pwrite() argument
577 …yte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return… in read() argument
620byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketE… in recvfrom() argument
664byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, So… in sendto() argument
669byteOffset, int byteCount, int flags, @Nullable SocketAddress address) throws ErrnoException, Sock… in sendto() argument
998 …te[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { return … in write() argument
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp1034 const char* bytes, size_t byteOffset, size_t byteCount, jboolean isFinal) { in append() argument
1039 if (!XML_Parse(parser, bytes + byteOffset, byteCount, isFinal) && !env->ExceptionCheck()) { in append()
1047 jbyteArray xml, jint byteOffset, jint byteCount) { in ExpatParser_appendBytes() argument
1054 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendBytes()
1065 size_t byteOffset = 2 * charOffset; in ExpatParser_appendChars() local
1067 append(env, object, pointer, bytes, byteOffset, byteCount, XML_FALSE); in ExpatParser_appendChars()
Dlibcore_io_Linux.cpp2100 …eadBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_preadBytes() argument
2105 …return IO_FAILURE_RETRY(env, ssize_t, pread64, javaFd, bytes.get() + byteOffset, byteCount, offset… in Linux_preadBytes()
2108 …iteBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_pwriteBytes() argument
2113 …return IO_FAILURE_RETRY(env, ssize_t, pwrite64, javaFd, bytes.get() + byteOffset, byteCount, offse… in Linux_pwriteBytes()
2116 …eadBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount)… in Linux_readBytes() argument
2121 return IO_FAILURE_RETRY(env, ssize_t, read, javaFd, bytes.get() + byteOffset, byteCount); in Linux_readBytes()
2161 …romBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_recvfromBytes() argument
2171 …jint recvCount = NET_FAILURE_RETRY(env, ssize_t, recvfrom, javaFd, bytes.get() + byteOffset, byteC… in Linux_recvfromBytes()
2359 …dtoBytes(JNIEnv* env, jobject, jobject javaFd, jobject javaBytes, jint byteOffset, jint byteCount,… in Linux_sendtoBytes() argument
2366 NULL_ADDR_OK, bytes.get() + byteOffset, byteCount, flags); in Linux_sendtoBytes()
[all …]
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java96 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
97 int numRead = super.read(buffer, byteOffset, byteCount); in read()

12