Class AllocatedDirectMemoryIO


class AllocatedDirectMemoryIO extends DirectMemoryIO
  • Field Details

    • allocated

      private final AtomicBoolean allocated
    • size

      private final long size
  • Constructor Details

    • AllocatedDirectMemoryIO

      public AllocatedDirectMemoryIO(Runtime runtime, long size, boolean clear)
  • Method Details

    • size

      public long size()
      Description copied from class: Pointer
      Gets the size of this memory object in bytes (optional operation).
      Overrides:
      size in class DirectMemoryIO
      Returns:
      the size of the memory area this Pointer points to. If the size is unknown, Long.MAX_VALUE is returned}.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DirectMemoryIO
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class DirectMemoryIO
    • dispose

      public final void dispose()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable