MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / nextByteBuffer

Method nextByteBuffer

src/main/java/net/optifine/shaders/Shaders.java:520–526  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

518 public static int entityDataIndex = 0;
519
520 private static ByteBuffer nextByteBuffer(int size)
521 {
522 ByteBuffer bytebuffer = bigBuffer;
523 int i = bytebuffer.limit();
524 bytebuffer.position(i).limit(i + size);
525 return bytebuffer.slice();
526 }
527
528 public static IntBuffer nextIntBuffer(int size)
529 {

Callers

nothing calls this directly

Calls 3

positionMethod · 0.80
sliceMethod · 0.80
limitMethod · 0.45

Tested by

no test coverage detected