Class IntArrayAllocator
java.lang.Object
org.cloudburstmc.server.level.generator.standard.misc.IntArrayAllocator
A simple pooling allocator for
int[]s.
Not thread-safe!
- Author:
- DaPorkchop_
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Deque<int[]>[]static net.daporkchop.lib.common.ref.Ref<IntArrayAllocator>protected int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
-
arenas
-
maxArenaSize
protected final int maxArenaSize
-
-
Constructor Details
-
IntArrayAllocator
public IntArrayAllocator(int maxArenaSize)
-
-
Method Details
-
get
public int[] get(int minSize) -
release
public void release(@NonNull @lombok.NonNull int[] arr)
-