Package com.mojang.blaze3d.vertex
Class ByteBufferBuilder
java.lang.Object
com.mojang.blaze3d.vertex.ByteBufferBuilder
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.lwjgl.system.MemoryUtil.MemoryAllocatorprivate static final intprivate intprivate intprivate static final org.slf4j.Loggerprivate static final intprivate int(package private) longprivate intprivate int -
Constructor Summary
Constructors -
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:
closein interfaceAutoCloseable
-
checkOpen
private void checkOpen()
-