Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/nio/DirectByteBufferR.java
/* * Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ // -- This file was mechanically generated: Do not edit! -- // package java.nio; import java.io.FileDescriptor; import java.lang.ref.Reference; import java.util.Objects; import jdk.internal.access.foreign.MemorySegmentProxy; import jdk.internal.misc.ScopedMemoryAccess.Scope; import jdk.internal.misc.VM; import jdk.internal.ref.Cleaner; import sun.nio.ch.DirectBuffer; class DirectByteBufferR extends DirectByteBuffer implements DirectBuffer { // Primary constructor // DirectByteBufferR(int cap) { // package-private super(cap); this.isReadOnly = true; } // For memory-mapped buffers -- invoked by FileChannelImpl via reflection // protected DirectByteBufferR(int cap, long addr, FileDescriptor fd, Runnable unmapper, boolean isSync, MemorySegmentProxy segment) { super(cap, addr, fd, unmapper, isSync, segment); this.isReadOnly = true; } // For duplicates and slices // DirectByteBufferR(DirectBuffer db, // package-private int mark, int pos, int lim, int cap, int off, FileDescriptor fd, boolean isSync, MemorySegmentProxy segment) { super(db, mark, pos, lim, cap, off, fd, isSync, segment); this.isReadOnly = true; } @Override Object base() { return null; } public MappedByteBuffer slice() { int pos = this.position(); int lim = this.limit(); int rem = (pos <= lim ? lim - pos : 0); int off = (pos << 0); assert (off >= 0); return new DirectByteBufferR(this, -1, 0, rem, rem, off, fileDescriptor(), isSync(), segment); } @Override public MappedByteBuffer slice(int index, int length) { Objects.checkFromIndexSize(index, length, limit()); return new DirectByteBufferR(this, -1, 0, length, length, index << 0, fileDescriptor(), isSync(), segment); } public MappedByteBuffer duplicate() { return new DirectByteBufferR(this, this.markValue(), this.position(), this.limit(), this.capacity(), 0, fileDescriptor(), isSync(), segment); } public ByteBuffer asReadOnlyBuffer() { return duplicate(); } public ByteBuffer put(byte x) { throw new ReadOnlyBufferException(); } public ByteBuffer put(int i, byte x) { throw new ReadOnlyBufferException(); } public MappedByteBuffer compact() { throw new ReadOnlyBufferException(); } public boolean isDirect() { return true; } public boolean isReadOnly() { return true; } private ByteBuffer putChar(long a, char x) { throw new ReadOnlyBufferException(); } public ByteBuffer putChar(char x) { throw new ReadOnlyBufferException(); } public ByteBuffer putChar(int i, char x) { throw new ReadOnlyBufferException(); } public CharBuffer asCharBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 1; if (!UNALIGNED && ((address + off) % (1 << 1) != 0)) { return (bigEndian ? (CharBuffer)(new ByteBufferAsCharBufferRB(this, -1, 0, size, size, address + off, segment)) : (CharBuffer)(new ByteBufferAsCharBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (CharBuffer)(new DirectCharBufferRU(this, -1, 0, size, size, off, segment)) : (CharBuffer)(new DirectCharBufferRS(this, -1, 0, size, size, off, segment))); } } private ByteBuffer putShort(long a, short x) { throw new ReadOnlyBufferException(); } public ByteBuffer putShort(short x) { throw new ReadOnlyBufferException(); } public ByteBuffer putShort(int i, short x) { throw new ReadOnlyBufferException(); } public ShortBuffer asShortBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 1; if (!UNALIGNED && ((address + off) % (1 << 1) != 0)) { return (bigEndian ? (ShortBuffer)(new ByteBufferAsShortBufferRB(this, -1, 0, size, size, address + off, segment)) : (ShortBuffer)(new ByteBufferAsShortBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (ShortBuffer)(new DirectShortBufferRU(this, -1, 0, size, size, off, segment)) : (ShortBuffer)(new DirectShortBufferRS(this, -1, 0, size, size, off, segment))); } } private ByteBuffer putInt(long a, int x) { throw new ReadOnlyBufferException(); } public ByteBuffer putInt(int x) { throw new ReadOnlyBufferException(); } public ByteBuffer putInt(int i, int x) { throw new ReadOnlyBufferException(); } public IntBuffer asIntBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 2; if (!UNALIGNED && ((address + off) % (1 << 2) != 0)) { return (bigEndian ? (IntBuffer)(new ByteBufferAsIntBufferRB(this, -1, 0, size, size, address + off, segment)) : (IntBuffer)(new ByteBufferAsIntBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (IntBuffer)(new DirectIntBufferRU(this, -1, 0, size, size, off, segment)) : (IntBuffer)(new DirectIntBufferRS(this, -1, 0, size, size, off, segment))); } } private ByteBuffer putLong(long a, long x) { throw new ReadOnlyBufferException(); } public ByteBuffer putLong(long x) { throw new ReadOnlyBufferException(); } public ByteBuffer putLong(int i, long x) { throw new ReadOnlyBufferException(); } public LongBuffer asLongBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 3; if (!UNALIGNED && ((address + off) % (1 << 3) != 0)) { return (bigEndian ? (LongBuffer)(new ByteBufferAsLongBufferRB(this, -1, 0, size, size, address + off, segment)) : (LongBuffer)(new ByteBufferAsLongBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (LongBuffer)(new DirectLongBufferRU(this, -1, 0, size, size, off, segment)) : (LongBuffer)(new DirectLongBufferRS(this, -1, 0, size, size, off, segment))); } } private ByteBuffer putFloat(long a, float x) { throw new ReadOnlyBufferException(); } public ByteBuffer putFloat(float x) { throw new ReadOnlyBufferException(); } public ByteBuffer putFloat(int i, float x) { throw new ReadOnlyBufferException(); } public FloatBuffer asFloatBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 2; if (!UNALIGNED && ((address + off) % (1 << 2) != 0)) { return (bigEndian ? (FloatBuffer)(new ByteBufferAsFloatBufferRB(this, -1, 0, size, size, address + off, segment)) : (FloatBuffer)(new ByteBufferAsFloatBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (FloatBuffer)(new DirectFloatBufferRU(this, -1, 0, size, size, off, segment)) : (FloatBuffer)(new DirectFloatBufferRS(this, -1, 0, size, size, off, segment))); } } private ByteBuffer putDouble(long a, double x) { throw new ReadOnlyBufferException(); } public ByteBuffer putDouble(double x) { throw new ReadOnlyBufferException(); } public ByteBuffer putDouble(int i, double x) { throw new ReadOnlyBufferException(); } public DoubleBuffer asDoubleBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 3; if (!UNALIGNED && ((address + off) % (1 << 3) != 0)) { return (bigEndian ? (DoubleBuffer)(new ByteBufferAsDoubleBufferRB(this, -1, 0, size, size, address + off, segment)) : (DoubleBuffer)(new ByteBufferAsDoubleBufferRL(this, -1, 0, size, size, address + off, segment))); } else { return (nativeByteOrder ? (DoubleBuffer)(new DirectDoubleBufferRU(this, -1, 0, size, size, off, segment)) : (DoubleBuffer)(new DirectDoubleBufferRS(this, -1, 0, size, size, off, segment))); } } }
⏎ java/nio/DirectByteBufferR.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 45731👍, 1💬
Popular Posts:
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...