Class FfmHandle

java.lang.Object
moe.kyokobot.libdave.ffm.FfmHandle
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
FfmDecryptor, FfmEncryptor, FfmKeyRatchet, FfmSession

@Internal public abstract class FfmHandle extends Object implements AutoCloseable
  • Field Details

    • handle

      protected final MemorySegment handle
    • closed

      protected volatile boolean closed
  • Constructor Details

  • Method Details

    • assertOpen

      protected void assertOpen()
    • isClosed

      public boolean isClosed()
    • stealHandle

      @Internal public MemorySegment stealHandle()
      Transfers ownership of the native handle to the caller and marks this object as closed.
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable