Class AllocatedDirectMemoryIO

    • Field Detail

      • allocated

        private final java.util.concurrent.atomic.AtomicBoolean allocated
      • size

        private final int size
    • Constructor Detail

      • AllocatedDirectMemoryIO

        public AllocatedDirectMemoryIO​(Runtime runtime,
                                       int size,
                                       boolean clear)
    • Method Detail

      • 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}.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class DirectMemoryIO
      • dispose

        public final void dispose()
      • finalize

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