com.mojang.blaze3d.buffers

public class BufferAllocator

implements AutoCloseable

com.mojang.blaze3d.vertex.ByteBufferBuilder
net.minecraft.class_9799
com.mojang.blaze3d.buffers.BufferAllocator

Field summary

Modifier and TypeField
private static final com.mojang.jtracy.MemoryPool
MEMORY_POOL
field_54266
MEMORY_POOL
private static final org.slf4j.Logger
LOGGER
field_52078
LOGGER
private static final org.lwjgl.system.MemoryUtil$MemoryAllocator
ALLOCATOR
field_52079
ALLOCATOR
private static final long
DEFAULT_MAX_CAPACITY
field_61052
MAX_SIZE
private static final int
MAX_GROWTH_SIZE
field_52080
MIN_GROWTH
private static final int
BUFFER_FREED_GENERATION
field_52081
CLOSED
private long
pointer
field_52082
pointer
private long
capacity
field_52083
size
private final long
maxCapacity
field_61053
maxSize
private long
writeOffset
field_52084
offset
private long
nextResultOffset
field_52085
lastOffset
private int
resultCount
field_52086
refCount
private int
generation
field_52087
clearCount

Constructor summary

ModifierConstructor
public (int size, long maxSize)
public (int size)

Method summary

Modifier and TypeMethod
public static BufferAllocator
exactlySized(int capacity)
method_72201(int arg0)
fixedSized(int size)
public long
reserve(int size)
method_60808(int arg0)
allocate(int size)
private void
ensureCapacity(long requiredCapacity)
method_60810(long arg0)
growIfNecessary(long newSize)
private void
resize(long newCapacity)
method_60812(long arg0)
grow(long newSize)
public BufferAllocator$CloseableBuffer
build()
method_60807()
getAllocated()
public void
clear()
method_60809()
clear()
public void
discard()
method_60811()
reset()
private boolean
isValid(int generation)
method_60814(int arg0)
clearCountEquals(int clearCount)
private void
freeResult()
method_60813()
clearIfUnreferenced()
private void
discardResults()
method_60815()
forceClear()
public void
close()
private void
checkOpen()
method_60816()
ensureNotFreed()