Class ByteBufferBuilder

java.lang.Object
com.mojang.blaze3d.vertex.ByteBufferBuilder
All Implemented Interfaces:
AutoCloseable

public class ByteBufferBuilder extends Object implements AutoCloseable
  • 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

      @Nullable public ByteBufferBuilder.Result 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 interface AutoCloseable
    • checkOpen

      private void checkOpen()