Class FixedSizeBuffer$


  • public class FixedSizeBuffer$
    extends java.lang.Object
    INTERNAL API
    • Field Detail

      • MODULE$

        public static final FixedSizeBuffer$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • FixedSizeBuffer$

        public FixedSizeBuffer$()
    • Method Detail

      • apply

        public <T> FixedSizeBuffer$FixedSizeBuffer<T> apply​(int size)
        INTERNAL API

        Returns a fixed size buffer backed by an array. The buffer implementation DOES NOT check against overflow or underflow, it is the responsibility of the user to track or check the capacity of the buffer before enqueueing dequeueing or dropping.

        Returns a specialized instance for power-of-two sized buffers.