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.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
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 pCapacity)
-
-
Method Details
-
reserve
public long reserve(int pBytes) -
ensureCapacity
private void ensureCapacity(int pSize) -
resize
private void resize(int pNewSize) -
build
-
clear
public void clear() -
discard
public void discard() -
isValid
boolean isValid(int pGeneration) -
freeResult
void freeResult() -
discardResults
private void discardResults() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
checkOpen
private void checkOpen()
-