Lines Matching defs:offset
243 int offset = (int) (position - alignment);
244 MemoryBlock block = MemoryBlock.mmap(fd, alignment, size + offset, mapMode);
245 return new MappedByteBufferAdapter(block, (int) size, offset, mapMode);
336 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException {
337 Arrays.checkOffsetAndCount(buffers.length, offset, length);
340 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.READV));
417 MutableLong offset = new MutableLong(position);
418 long rc = Libcore.os.sendfile(outFd, fd, offset, count);
501 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException {
502 Arrays.checkOffsetAndCount(buffers.length, offset, length);
505 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.WRITEV));
513 static int calculateTotalRemaining(ByteBuffer[] buffers, int offset, int length, boolean copyingIn) {
515 for (int i = offset; i < offset + length; ++i) {