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_344576_)
  • Method Details

    • reserve

      public long reserve(int p_342985_)
    • ensureCapacity

      private void ensureCapacity(int p_343904_)
    • resize

      private void resize(int p_344270_)
    • build

      @Nullable public ByteBufferBuilder.Result build()
    • clear

      public void clear()
    • discard

      public void discard()
    • isValid

      boolean isValid(int p_344177_)
    • freeResult

      void freeResult()
    • discardResults

      private void discardResults()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • checkOpen

      private void checkOpen()