Package com.mojang.blaze3d.vertex
Class ByteBufferBuilder
java.lang.Object
com.mojang.blaze3d.vertex.ByteBufferBuilder
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.lwjgl.system.MemoryUtil.MemoryAllocator
private static final int
private int
private int
private static final org.slf4j.Logger
private static final int
private int
(package private) long
private int
private int
-
Constructor Summary
-
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ALLOCATOR
private static final org.lwjgl.system.MemoryUtil.MemoryAllocator ALLOCATOR -
MAX_GROWTH_SIZE
private static final int MAX_GROWTH_SIZE- See Also:
-
BUFFER_FREED_GENERATION
private static final int BUFFER_FREED_GENERATION- See Also:
-
pointer
long pointer -
capacity
private int capacity -
writeOffset
private int writeOffset -
nextResultOffset
private int nextResultOffset -
resultCount
private int resultCount -
generation
private int generation
-
-
Constructor Details
-
ByteBufferBuilder
public ByteBufferBuilder(int p_350446_)
-
-
Method Details
-
reserve
public long reserve(int p_350289_) -
ensureCapacity
private void ensureCapacity(int p_350893_) -
resize
private void resize(int p_350909_) -
build
-
clear
public void clear() -
discard
public void discard() -
isValid
boolean isValid(int p_350321_) -
freeResult
void freeResult() -
discardResults
private void discardResults() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
checkOpen
private void checkOpen()
-