mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-28 02:48:14 -05:00
Update #47 - Singleplayer lag fixes
This commit is contained in:
21
sources/main/java/com/carrotsearch/hppc/Preallocable.java
Normal file
21
sources/main/java/com/carrotsearch/hppc/Preallocable.java
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* HPPC
|
||||
*
|
||||
* Copyright (C) 2010-2024 Carrot Search s.c. and contributors
|
||||
* All rights reserved.
|
||||
*
|
||||
* Refer to the full license file "LICENSE.txt":
|
||||
* https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt
|
||||
*/
|
||||
package com.carrotsearch.hppc;
|
||||
|
||||
/** Anything that can preallocate buffers given prior knowledge of the number of stored elements. */
|
||||
public interface Preallocable {
|
||||
/**
|
||||
* Ensure this container can hold at least the given number of elements without resizing its
|
||||
* buffers.
|
||||
*
|
||||
* @param expectedElements The total number of elements, inclusive.
|
||||
*/
|
||||
public void ensureCapacity(int expectedElements);
|
||||
}
|
Reference in New Issue
Block a user