Class NativeLongArray

java.lang.Object
io.netty.channel.kqueue.NativeLongArray

final class NativeLongArray extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private java.nio.ByteBuffer
     
    private long
     
     
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NativeLongArray(int capacity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    add(long value)
     
    private static int
     
    (package private) void
     
    (package private) void
     
    private static int
    idx(int index)
     
    (package private) boolean
     
    (package private) long
     
    (package private) long
     
    private long
    memoryOffset(int index)
     
    private void
     
    (package private) int
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • memoryCleanable

      private CleanableDirectBuffer memoryCleanable
    • memory

      private java.nio.ByteBuffer memory
    • memoryAddress

      private long memoryAddress
    • capacity

      private int capacity
    • size

      private int size
  • Constructor Details

    • NativeLongArray

      NativeLongArray(int capacity)
  • Method Details

    • idx

      private static int idx(int index)
    • calculateBufferCapacity

      private static int calculateBufferCapacity(int capacity)
    • add

      void add(long value)
    • clear

      void clear()
    • isEmpty

      boolean isEmpty()
    • size

      int size()
    • free

      void free()
    • memoryAddress

      long memoryAddress()
    • memoryAddressEnd

      long memoryAddressEnd()
    • memoryOffset

      private long memoryOffset(int index)
    • reallocIfNeeded

      private void reallocIfNeeded()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object