Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-17 00:20:09 +01:00
Update javadocs
Dieser Commit ist enthalten in:
Ursprung
43d7e8124e
Commit
63f1791fa5
@ -7,7 +7,8 @@ import java.nio.channels.FileChannel;
|
|||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A memory-mapped file that can hold integer values in range from 2 up to a variable maximum.
|
* A memory-mapped file that can hold non-negative integers.
|
||||||
|
* The storage is optimized for compactness while providing fast random access.
|
||||||
*/
|
*/
|
||||||
public sealed interface MemoryFile extends AutoCloseable, Flushable permits SmallMemoryFile {
|
public sealed interface MemoryFile extends AutoCloseable, Flushable permits SmallMemoryFile {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Set;
|
|||||||
final class MemoryFileSupport {
|
final class MemoryFileSupport {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of additional bytes required to safely call {@link java.nio.ByteBuffer#getInt(int)}
|
* The number of additional bytes required to safely call {@link java.nio.ByteBuffer#getInt(int)}
|
||||||
* and {@link java.nio.ByteBuffer#putInt(int, int)} for the last actually used byte.
|
* and {@link java.nio.ByteBuffer#putInt(int, int)} for the last actually used byte.
|
||||||
*/
|
*/
|
||||||
static final int PADDING = 3;
|
static final int PADDING = 3;
|
||||||
|
@ -9,7 +9,7 @@ import java.nio.channels.FileLock;
|
|||||||
import static com.fastasyncworldedit.core.util.io.MemoryFileSupport.shift;
|
import static com.fastasyncworldedit.core.util.io.MemoryFileSupport.shift;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This implementation of MemoryFile provides storage of up to Integer.MAX_VALUE bytes.
|
* This implementation of MemoryFile provides storage of up to {@link Integer#MAX_VALUE} bytes.
|
||||||
* As access always uses {@link java.nio.ByteBuffer#getInt(int)}/ {@link java.nio.ByteBuffer#putInt(int, int)},
|
* As access always uses {@link java.nio.ByteBuffer#getInt(int)}/ {@link java.nio.ByteBuffer#putInt(int, int)},
|
||||||
* the last three bytes cannot be accessed directly but only by accessing the whole integer.
|
* the last three bytes cannot be accessed directly but only by accessing the whole integer.
|
||||||
* Otherwise, this class makes heavy use of unaligned memory access and a configured
|
* Otherwise, this class makes heavy use of unaligned memory access and a configured
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren