3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-17 00:20:09 +01:00

Update javadocs

Dieser Commit ist enthalten in:
SirYwell 2023-04-17 20:35:12 +02:00
Ursprung 43d7e8124e
Commit 63f1791fa5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
3 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -7,7 +7,8 @@ import java.nio.channels.FileChannel;
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 {

Datei anzeigen

@ -11,7 +11,7 @@ import java.util.Set;
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.
*/
static final int PADDING = 3;

Datei anzeigen

@ -9,7 +9,7 @@ import java.nio.channels.FileLock;
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)},
* 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